tools: don't print stack for tests that fail, fix saves
[nit.git] / tests / base_closure_default4.nit
index 494cebb..1209c18 100644 (file)
 import kernel
 
 class A
-       meth foo
-               with bar(i: Int): Int do
+       fun foo
+               !bar(i: Int): Int do
                        #alt1# return
                        #alt2# return -1
                        #alt3# abort
                        #alt4# continue
+                       #alt6# break
+                       #alt7# break 1
                        continue (i * 10) #!alt5#
                end
        do
@@ -34,7 +36,7 @@ end
 
 var a = new A
 0.output
-a.foo with j do continue j
+a.foo !bar j do continue j
 0.output
 a.foo
 0.output