nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: add some runtime error in nitin.input
[nit.git]
/
tests
/
test_file_read2.nit
diff --git
a/tests/test_file_read2.nit
b/tests/test_file_read2.nit
index
bc2943b
..
f4778b1
100644
(file)
--- a/
tests/test_file_read2.nit
+++ b/
tests/test_file_read2.nit
@@
-12,17
+12,17
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
-var f = new IFStream.open("test_file_read.nit")
+var f = new FileReader.open("test_file_read.nit")
print f.read_all
print "---"
print f.read_all
print "---"
-f = new IFStream.open("test_file_read.nit")
+f = new FileReader.open("test_file_read.nit")
print f.read_lines.join("\n")
print "---"
print f.read_lines.join("\n")
print "---"
-f = new IFStream.open("test_file_read.nit")
+f = new FileReader.open("test_file_read.nit")
print f.each_line.to_a.join("\n")
print "---"
print f.each_line.to_a.join("\n")
print "---"