summaryrefslogtreecommitdiffhomepage
path: root/test/file.rb
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2014-04-21 10:02:25 +0900
committerTomoyuki Sahara <[email protected]>2014-04-21 10:02:25 +0900
commitc46cb1b5eb1f92a23500bf877c10cd65e7c43e45 (patch)
tree74fcc550cfab14412b3e937bddd5f5a9ba2424f9 /test/file.rb
parente5f30f83ce5f5a11c77990718b323f4718a3a03a (diff)
downloadmruby-c46cb1b5eb1f92a23500bf877c10cd65e7c43e45.tar.gz
mruby-c46cb1b5eb1f92a23500bf877c10cd65e7c43e45.zip
more tests.
Diffstat (limited to 'test/file.rb')
-rw-r--r--test/file.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/file.rb b/test/file.rb
index 1188fcc8f..c8df85e89 100644
--- a/test/file.rb
+++ b/test/file.rb
@@ -23,7 +23,7 @@ end
assert('File#path', '15.2.21.4.2') do
io = File.open($mrbtest_io_rfname, "r")
- assert_equal $mrbtest_io_msg + "\n", io.read
+ assert_equal $mrbtest_io_msg, io.read
assert_equal $mrbtest_io_rfname, io.path
io.close
assert_equal $mrbtest_io_rfname, io.path
@@ -66,7 +66,7 @@ end
assert('File.size') do
- File.size($mrbtest_io_rfname) == $mrbtest_io_msg.size + 1 and
+ File.size($mrbtest_io_rfname) == $mrbtest_io_msg.size and
File.size($mrbtest_io_wfname) == 0
end