backend: enable some tests

This commit is contained in:
Svyatoslav Scherbina
2017-01-11 15:20:07 +07:00
committed by Konstantin Anisimov
parent ae117b020e
commit 14695bf20e
3 changed files with 4 additions and 7 deletions
-2
View File
@@ -195,7 +195,6 @@ task null_check(type: RunKonanTest) {
} }
task array_to_any(type: RunKonanTest) { task array_to_any(type: RunKonanTest) {
disabled = true
source = "codegen/basics/array_to_any.kt" source = "codegen/basics/array_to_any.kt"
} }
@@ -386,7 +385,6 @@ task statements0(type: RunKonanTest) {
} }
task boxing0(type: RunKonanTest) { task boxing0(type: RunKonanTest) {
disabled = true
goldValue = "17\n" goldValue = "17\n"
source = "codegen/boxing/boxing0.kt" source = "codegen/boxing/boxing0.kt"
} }
@@ -1,5 +1,5 @@
fun main(args: Array<String>) { fun main(args: Array<String>) {
println(foo().toString()) foo().hashCode()
} }
fun foo(): Any { fun foo(): Any {
@@ -181,7 +181,6 @@ fun testPutEntry() {
assertTrue(expected == m) assertTrue(expected == m)
} }
/* Fails due to variance.
fun testRemoveAllEntries() { fun testRemoveAllEntries() {
val expected = mapOf("a" to "1", "b" to "2", "c" to "3") val expected = mapOf("a" to "1", "b" to "2", "c" to "3")
val m = HashMap(expected) val m = HashMap(expected)
@@ -199,7 +198,7 @@ fun testRetainAllEntries() {
assertEquals(expected, m) assertEquals(expected, m)
assertTrue(m.entries.retainAll(mapOf("b" to "22", "c" to "3", "d" to "4").entries)) assertTrue(m.entries.retainAll(mapOf("b" to "22", "c" to "3", "d" to "4").entries))
assertEquals(mapOf("c" to "3"), m) assertEquals(mapOf("c" to "3"), m)
} */ }
fun testContainsAllValues() { fun testContainsAllValues() {
val m = HashMap(mapOf("a" to "1", "b" to "2", "c" to "3")) val m = HashMap(mapOf("a" to "1", "b" to "2", "c" to "3"))
@@ -256,8 +255,8 @@ fun main(args : Array<String>) {
testHashCode() testHashCode()
testToString() testToString()
testPutEntry() testPutEntry()
//testRemoveAllEntries() testRemoveAllEntries()
//testRetainAllEntries() testRetainAllEntries()
testContainsAllValues() testContainsAllValues()
testRemoveValue() testRemoveValue()
testRemoveAllValues() testRemoveAllValues()