Refactor codegen tests

- initialize environment only once in setUp()
- add comments on why some tests are disabled
- modify and rename some tests
- re-enable now working tests
- extract some tests into files with box()
- remove useless 'throws' declarations and commented code
This commit is contained in:
Alexander Udalov
2013-01-22 22:22:53 +04:00
committed by Alexander Udalov
parent 99827d10a8
commit 0df71bd696
76 changed files with 601 additions and 704 deletions
@@ -4,7 +4,6 @@ class C() {
fun testReceiver() : String {
val res : String = "mama".toMyPrefixedString("111", "222")
System.out?.println(res)
return res
}
@@ -1,7 +1,9 @@
fun foo(x: Int) {}
fun loop(var times : Int) {
while(times > 0) {
val u : (value : Int) -> Unit = {
System.out?.println(it)
foo(it)
}
u(times--)
}