JS: move expressions test to box tests
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package foo
|
||||
|
||||
fun box(): String {
|
||||
val a: dynamic = 12
|
||||
var b: dynamic = 33.4
|
||||
var c: dynamic = "text"
|
||||
val d: dynamic = true
|
||||
|
||||
val v: dynamic = 42
|
||||
val tt: dynamic = "object t {}"
|
||||
|
||||
testFalse { a === 34 }
|
||||
testFalse { a === "34" }
|
||||
testTrue { a === 12 }
|
||||
testFalse { a === "12" }
|
||||
testFalse { a !== 12 }
|
||||
testTrue { a !== "12" }
|
||||
testTrue { c === "text" }
|
||||
testFalse { d === 1 }
|
||||
testFalse { d === 0 }
|
||||
testFalse { c !== "text" }
|
||||
testFalse { v === n }
|
||||
testFalse { tt === t }
|
||||
testFalse { v === bar }
|
||||
testTrue { n !== bar }
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user