We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b147cbb commit 01ae992Copy full SHA for 01ae992
test/stdlib/IO_test.rb
@@ -15,6 +15,8 @@ def test_binread
15
IO, :binread, File.expand_path(__FILE__), 3
16
assert_send_type "(String, Integer, Integer) -> String",
17
IO, :binread, File.expand_path(__FILE__), 3, 0
18
+ assert_send_type "(String, Integer?, Integer) -> String",
19
+ IO, :binread, File.expand_path(__FILE__), nil, 3
20
end
21
22
def test_binwrite
@@ -88,6 +90,8 @@ def test_copy_stream
88
90
IO, :copy_stream, src_name, dst_name, 1
89
91
assert_send_type "(String, String, Integer, Integer) -> Integer",
92
IO, :copy_stream, src_name, dst_name, 1, 0
93
+ assert_send_type "(String, String, Integer?, Integer) -> Integer",
94
+ IO, :copy_stream, src_name, dst_name, nil, 1
95
96
File.open(dst_name, "w") do |dst_io|
97
assert_send_type "(String, IO) -> Integer",
0 commit comments