JS backend: tests for char type
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user