JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-29 14:51:32 +03:00
parent a18f5eca2d
commit 9bf124af3f
129 changed files with 766 additions and 685 deletions
@@ -0,0 +1,18 @@
package foo
public fun <T> List<T>.some(): T = this[0]
public fun String.some(): Char = this[0]
public val <T> List<T>.some: T get() = this[1]
public val String.some: Char get() = this[1]
fun box(): String {
val data = listOf("foo", "bar")
assertEquals("foo", data.some())
assertEquals("bar", data.some)
assertEquals('f', "foo".some())
assertEquals('a', "bar".some)
return "OK"
}