nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated `tests/syntax_callref.nit`
[nit.git]
/
tests
/
test_for_abuse.nit
diff --git
a/tests/test_for_abuse.nit
b/tests/test_for_abuse.nit
index
545440b
..
9400641
100644
(file)
--- a/
tests/test_for_abuse.nit
+++ b/
tests/test_for_abuse.nit
@@
-14,12
+14,21
@@
import for_abuse
import for_abuse
+var escape_f: nullable Reader = null
for f in file_open("test_for_abuse.nit") do
for f in file_open("test_for_abuse.nit") do
+ escape_f = f
print f.read_line
print f.read_line
+ print "f is closed? {f.eof}"
end
end
+print "f is closed? {escape_f.eof}"
var array = ["*", "****", "**", "*******"]
for q in array.sort_fa do
var array = ["*", "****", "**", "*******"]
for q in array.sort_fa do
- q.res = q.b.length <=> q.b.length
+ # IN:
+ # q.a
+ # q-b
+ # OUT
+ # q.res
+ q.res = q.a.length <=> q.b.length
end
end
-
+print array.join(" ")