@@ -27,6 +27,10 @@ def test_gets
2727 ARGF . class . new ( __FILE__ ) , :gets , "\n "
2828 assert_send_type "(::String sep, ::Integer limit) -> ::String" ,
2929 ARGF . class . new ( __FILE__ ) , :gets , "\n " , 1
30+ assert_send_type "(chomp: boolish) -> ::String" ,
31+ ARGF . class . new ( __FILE__ ) , :gets , chomp : true
32+ assert_send_type "(::String sep, ::Integer limit, chomp: boolish) -> ::String" ,
33+ ARGF . class . new ( __FILE__ ) , :gets , "\n " , 1 , chomp : true
3034 assert_send_type "() -> nil" ,
3135 ARGF . class . new ( Tempfile . new ) , :gets
3236 end
@@ -60,6 +64,10 @@ def test_readline
6064 ARGF . class . new ( __FILE__ ) , :readline , "\n "
6165 assert_send_type "(::String sep, ::Integer limit) -> ::String" ,
6266 ARGF . class . new ( __FILE__ ) , :readline , "\n " , 1
67+ assert_send_type "(chomp: boolish) -> ::String" ,
68+ ARGF . class . new ( __FILE__ ) , :readline , chomp : true
69+ assert_send_type "(::String sep, ::Integer limit, chomp: boolish) -> ::String" ,
70+ ARGF . class . new ( __FILE__ ) , :readline , "\n " , 1 , chomp : true
6371 end
6472
6573 def test_readlines
@@ -69,6 +77,10 @@ def test_readlines
6977 ARGF . class . new ( __FILE__ ) , :readlines , "\n "
7078 assert_send_type "(::String sep, ::Integer limit) -> ::Array[::String]" ,
7179 ARGF . class . new ( __FILE__ ) , :readlines , "\n " , 1
80+ assert_send_type "(chomp: boolish) -> ::Array[::String]" ,
81+ ARGF . class . new ( __FILE__ ) , :readlines , chomp : true
82+ assert_send_type "(::String sep, ::Integer limit, chomp: boolish) -> ::Array[::String]" ,
83+ ARGF . class . new ( __FILE__ ) , :readlines , "\n " , 1 , chomp : true
7284 end
7385
7486 def test_inspect
0 commit comments