JS backend: add simple enum test

This commit is contained in:
Erokhin Stanislav
2013-10-17 21:25:51 +04:00
parent e9fe0070d7
commit 4a55f5a65e
3 changed files with 14 additions and 1 deletions
@@ -23,7 +23,11 @@ public class EnumTest extends SingleFileTranslationTest {
super("enum/");
}
public void testSimple() throws Exception {
public void testSimpleEnum() throws Exception {
checkFooBoxIsOk();
}
public void testEnumWithInheritance() throws Exception {
checkFooBoxIsOk();
}
@@ -0,0 +1,9 @@
package foo
enum class E {
OK
}
fun box(): String {
return E.OK.name()
}