backend: enable some tests
This commit is contained in:
committed by
SvyatoslavScherbina
parent
26dd735240
commit
8b83cb2adf
@@ -195,7 +195,6 @@ task null_check(type: RunKonanTest) {
|
||||
}
|
||||
|
||||
task array_to_any(type: RunKonanTest) {
|
||||
disabled = true
|
||||
source = "codegen/basics/array_to_any.kt"
|
||||
}
|
||||
|
||||
@@ -386,7 +385,6 @@ task statements0(type: RunKonanTest) {
|
||||
}
|
||||
|
||||
task boxing0(type: RunKonanTest) {
|
||||
disabled = true
|
||||
goldValue = "17\n"
|
||||
source = "codegen/boxing/boxing0.kt"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fun main(args: Array<String>) {
|
||||
println(foo().toString())
|
||||
foo().hashCode()
|
||||
}
|
||||
|
||||
fun foo(): Any {
|
||||
|
||||
@@ -181,7 +181,6 @@ fun testPutEntry() {
|
||||
assertTrue(expected == m)
|
||||
}
|
||||
|
||||
/* Fails due to variance.
|
||||
fun testRemoveAllEntries() {
|
||||
val expected = mapOf("a" to "1", "b" to "2", "c" to "3")
|
||||
val m = HashMap(expected)
|
||||
@@ -199,7 +198,7 @@ fun testRetainAllEntries() {
|
||||
assertEquals(expected, m)
|
||||
assertTrue(m.entries.retainAll(mapOf("b" to "22", "c" to "3", "d" to "4").entries))
|
||||
assertEquals(mapOf("c" to "3"), m)
|
||||
} */
|
||||
}
|
||||
|
||||
fun testContainsAllValues() {
|
||||
val m = HashMap(mapOf("a" to "1", "b" to "2", "c" to "3"))
|
||||
@@ -256,8 +255,8 @@ fun main(args : Array<String>) {
|
||||
testHashCode()
|
||||
testToString()
|
||||
testPutEntry()
|
||||
//testRemoveAllEntries()
|
||||
//testRetainAllEntries()
|
||||
testRemoveAllEntries()
|
||||
testRetainAllEntries()
|
||||
testContainsAllValues()
|
||||
testRemoveValue()
|
||||
testRemoveAllValues()
|
||||
|
||||
Reference in New Issue
Block a user