JS: move expressions test to box tests
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package foo
|
||||
|
||||
fun box(): String {
|
||||
val a: dynamic = 12
|
||||
var b: dynamic = 33.4
|
||||
var c: dynamic = "text"
|
||||
val d: dynamic = true
|
||||
|
||||
testFalse { a > b }
|
||||
testTrue { b <= 34 }
|
||||
testTrue { c >= "text" }
|
||||
testFalse { c <= "abc" }
|
||||
testTrue { d >= 1 }
|
||||
testFalse { d <= 0 }
|
||||
testTrue { d && true }
|
||||
testTrue { false || d }
|
||||
testFalse { d && a < c }
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user