Migrate testdata to new lambda syntax

This commit is contained in:
Stanislav Erokhin
2015-04-03 13:40:07 +03:00
parent b703f59e04
commit 3de0dff575
134 changed files with 263 additions and 277 deletions
@@ -17,7 +17,7 @@ fun test11(): Int {
throw RuntimeException("2")
}
},
{(ex, thizz) ->
{ ex, thizz ->
if (ex.getMessage() == "2") {
thizz.value
} else {
@@ -48,7 +48,7 @@ fun test22(): Int {
111
}
},
{(ex, thizz) ->
{ ex, thizz ->
-11111
})
@@ -80,7 +80,7 @@ fun test33(): Int {
throw RuntimeException("-2")
}
},
{(ex, thizz) ->
{ ex, thizz ->
if (ex.getMessage() == "-2") {
throw RuntimeException("-3")
} else {
@@ -48,7 +48,7 @@ fun test3(): Int {
result = it.value;
throw RuntimeException("-1")
},
{ (e, z)->
{ e, z ->
++result
throw RuntimeException("-2")
},