lib: intro `Float.lerp` for simple linear interpolation
[nit.git] / tests / test_for_abuse.nit
index 545440b..9400641 100644 (file)
 
 import for_abuse
 
+var escape_f: nullable Reader = null
 for f in file_open("test_for_abuse.nit") do
+       escape_f = f
        print f.read_line
+       print "f is closed? {f.eof}"
 end
+print "f is closed? {escape_f.eof}"
 
 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
-
+print array.join(" ")