JS backend: tests for char type

This commit is contained in:
Michael Nedzelsky
2014-09-24 18:25:43 +04:00
parent 6aff9803c4
commit 9d49089041
13 changed files with 283 additions and 0 deletions
@@ -0,0 +1,12 @@
package foo
fun box(): String {
assertEquals(true, 2..1 == 4..2, "2..1 == 4..2")
assertEquals(true, 2L..1L == 318238945677L..2L, "2L..1L == 318238945677L..2L")
assertEquals(false, (2..1): Any == (4L..2L): Any, "(2..1): Any == (4L..2L): Any")
assertEquals(true, 'B'..'A' == 'W'..'B', "'B'..'A' == 'W'..'B'")
assertEquals(false, (2..1): Any == ('B'..'A'): Any, "(2..1): Any == ('B'..'A'): Any")
return "OK"
}