summaryrefslogtreecommitdiffhomepage
path: root/test/file.rb
diff options
context:
space:
mode:
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