Separate test_set_lineno_gets
This commit is contained in:
parent
1da3a31a5f
commit
3805ef7fb5
@ -1717,7 +1717,10 @@ class TestIO < Test::Unit::TestCase
|
||||
f.gets; assert_equal(3, $.)
|
||||
end
|
||||
SRC
|
||||
}
|
||||
end
|
||||
|
||||
def test_set_lineno_gets
|
||||
pipe(proc do |w|
|
||||
w.puts "foo"
|
||||
w.puts "bar"
|
||||
@ -1730,10 +1733,9 @@ class TestIO < Test::Unit::TestCase
|
||||
r.gets; assert_equal(1001, $.)
|
||||
r.gets; assert_equal(1001, $.)
|
||||
end)
|
||||
}
|
||||
end
|
||||
|
||||
def test_readline
|
||||
def test_set_lineno_readline
|
||||
pipe(proc do |w|
|
||||
w.puts "foo"
|
||||
w.puts "bar"
|
||||
|
Loading…
x
Reference in New Issue
Block a user