JS: move inline test to box tests
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package foo
|
||||
|
||||
class A(var x: Int) {
|
||||
override fun toString(): String = "A($x)"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val a = A(10)
|
||||
fizz(a).x = buzz(20)
|
||||
assertEquals(20, a.x)
|
||||
assertEquals("fizz(A(10));buzz(20);", pullLog())
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user