nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: fix test errors for engine nitc
[nit.git]
/
tests
/
base_closure_break_default.nit
diff --git
a/tests/base_closure_break_default.nit
b/tests/base_closure_break_default.nit
index
774227a
..
a0f324d
100644
(file)
--- a/
tests/base_closure_break_default.nit
+++ b/
tests/base_closure_break_default.nit
@@
-19,6
+19,7
@@
import kernel
class A
fun foo
break !bar do
class A
fun foo
break !bar do
+ if maybe then
#alt1# return
#alt2# return 1
#alt3# abort
#alt1# return
#alt2# return 1
#alt3# abort
@@
-26,15
+27,18
@@
class A
#alt5# continue 20
#alt6# break
#alt7# break 1
#alt5# continue 20
#alt6# break
#alt7# break 1
+ end
20.output
end
do
1.output
20.output
end
do
1.output
- bar
+ if maybe then bar
3.output
end
end
3.output
end
end
+fun maybe: Bool do return true
+
var a = new A
0.output
a.foo !bar do 2.output
var a = new A
0.output
a.foo !bar do 2.output