Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Apr 17, 2020
1 parent f4e0f4b commit e0d6035
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/runner_against_valid_program_test.rb
Expand Up @@ -118,6 +118,15 @@ def test_run_with_debug_flag
assert_match(/Debug flag is true/, stdout)
end

def test_run_and_press_tab_doesnt_make_byebug_crash
stdout = run_byebug(
example_path,
input: "\tputs 'Reached here'"
)

assert_match(/Reached here/, stdout)
end

def test_run_stops_at_the_first_line_by_default
stdout = run_byebug(example_path)

Expand Down

0 comments on commit e0d6035

Please sign in to comment.