Skip to content

Commit 1c16d0b

Browse files
WillHaltoko1
authored andcommitted
add test for next <n> stepping over lines with no returns
1 parent 0de8fcc commit 1c16d0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/console/control_flow_commands_test.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ def program
2121
10|
2222
11| s = Student.new("John")
2323
12| s.name
24-
13| "foo"
24+
13| puts "foo"
25+
14| puts "bar"
26+
15| "baz"
2527
RUBY
2628
end
2729

@@ -84,6 +86,8 @@ def test_next_with_number_goes_to_the_next_nth_line
8486
assert_line_num 11
8587
type 'n 2'
8688
assert_line_num 13
89+
type 'n 2'
90+
assert_line_num 15
8791
type 'quit'
8892
type 'y'
8993
end

0 commit comments

Comments
 (0)