From 844b2c368fc4bf852ea1a5f24731ae4bdd6b2331 Mon Sep 17 00:00:00 2001 From: ksss Date: Sun, 21 May 2017 22:52:52 +0900 Subject: IO#sysread with 0 always return empty string --- test/io.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/io.rb b/test/io.rb index 955481b9f..5a95961f3 100644 --- a/test/io.rb +++ b/test/io.rb @@ -234,6 +234,7 @@ assert('IO.sysopen, IO#sysread') do io.sysread(10000) end io.close + assert_equal "", io.sysread(0) io.closed? end -- cgit v1.2.3