JS: create new common directory for all generated tests, migrate several tests there
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package foo
|
||||
|
||||
inline fun bar(f: () -> Int): Array<Int> = arrayOf(f())
|
||||
|
||||
fun box(): String {
|
||||
val iterator = bar { 23 }.iterator()
|
||||
assertEquals(true, iterator.hasNext())
|
||||
assertEquals(23, iterator.next())
|
||||
assertEquals(false, iterator.hasNext())
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user