diff options
| author | Tomoyuki Sahara <[email protected]> | 2014-04-21 10:02:25 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2014-04-21 10:02:25 +0900 |
| commit | c46cb1b5eb1f92a23500bf877c10cd65e7c43e45 (patch) | |
| tree | 74fcc550cfab14412b3e937bddd5f5a9ba2424f9 /test/file.rb | |
| parent | e5f30f83ce5f5a11c77990718b323f4718a3a03a (diff) | |
| download | mruby-c46cb1b5eb1f92a23500bf877c10cd65e7c43e45.tar.gz mruby-c46cb1b5eb1f92a23500bf877c10cd65e7c43e45.zip | |
more tests.
Diffstat (limited to 'test/file.rb')
| -rw-r--r-- | test/file.rb | 4 |
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 |
