JS: create new common directory for all generated tests, migrate several tests there

This commit is contained in:
Alexey Andreev
2016-08-26 16:44:48 +03:00
parent 34a57f863b
commit 2bf0199959
321 changed files with 2123 additions and 2001 deletions
+24
View File
@@ -0,0 +1,24 @@
package foo
enum class A {
one,
two
}
fun box(): String {
val x = A.one.compareTo(A.two)
if (x != -1) return "Fail cmp(one, two) = $x"
val y = A.two.compareTo(A.one)
if (y != 1) return "Fail cmp(two, one) = $y"
if (!(A.one < A.two)) return "Fail !(one < two)"
if (A.one >= A.two) return "Fail one >= two"
if (!(A.two > A.one)) return "Fail !(two > one)"
if (A.two <= A.one) return "Fail two <= one"
val z = A.one.compareTo(A.one)
if (z != 0) return "Fail cmp(one, one) = $z"
return "OK"
}