moved the stdlib tests into the same directory as the stdlib, so it works a bit better with maven support in IDEA

This commit is contained in:
James Strachan
2012-03-14 16:14:04 +00:00
parent 9cd21d3a4d
commit 7ef65c0099
35 changed files with 2 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
package test.stdlib.issues
import java.util.List
import kotlin.util.*
import kotlin.test.*
import junit.framework.TestCase
private fun listDifference<T>(first : List<T>, second : List<T>) : List<T> {
return first.filter{ !second.contains(it) }.toList()
}
class StdLibIssuesTest() : TestCase() {
fun test_KT_1131() {
val data = arrayList("blah", "foo", "bar")
val filterValues = arrayList("bar", "something", "blah")
expect(arrayList("foo")) {
val answer = listDifference(data, filterValues)
println("Found answer ${answer}")
answer
}
}
}