From 673ce237c48ed6cd3c516ae6e03835e7b41e278f Mon Sep 17 00:00:00 2001 From: ksss Date: Wed, 15 Mar 2017 16:50:27 +0900 Subject: Suuport custom separator --- test/t/string.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/t/string.rb b/test/t/string.rb index 25c599ad4..ddc74fa54 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -341,6 +341,12 @@ assert('String#each_line', '15.2.10.5.15') do end assert_equal list, n_list + + n_list.clear + a.each_line("li") do |line| + n_list << line + end + assert_equal ["first li", "ne\nsecond li", "ne\nthird li", "ne"], n_list end assert('String#empty?', '15.2.10.5.16') do -- cgit v1.2.3