nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
neo4j: Prevent accidental code injections in the tests
[nit.git]
/
tests
/
base_control_flow.nit
diff --git
a/tests/base_control_flow.nit
b/tests/base_control_flow.nit
index
95182c0
..
57f94a3
100644
(file)
--- a/
tests/base_control_flow.nit
+++ b/
tests/base_control_flow.nit
@@
-16,22
+16,22
@@
import kernel
import kernel
-meth a: Int
+fun a: Int
do
a
return 0
do
a
return 0
- a
+ #alt2#a
end
end
-meth b: Int
+fun b: Int
do
a
if true then return 0
a
do
a
if true then return 0
a
- return 1#!alt1#
+ return 1#alt1#
end
end
-meth c: Int
+fun c: Int
do
a
if true then
do
a
if true then
@@
-40,10
+40,10
@@
do
return 0
end
a
return 0
end
a
- return 2#!alt1#
+ return 2#alt1#
end
end
-meth d: Int
+fun d: Int
do
a
if true then
do
a
if true then
@@
-51,5
+51,5
@@
do
else
return 0
end
else
return 0
end
- a
+ #alt3#a
end
end