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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user