From c46cb1b5eb1f92a23500bf877c10cd65e7c43e45 Mon Sep 17 00:00:00 2001 From: Tomoyuki Sahara Date: Mon, 21 Apr 2014 10:02:25 +0900 Subject: more tests. --- test/file.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/file.rb') 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 -- cgit v1.2.3