Skip to content

Commit

Permalink
Fix erroneously failing debugger test
Browse files Browse the repository at this point in the history
  • Loading branch information
iafisher committed Dec 31, 2018
1 parent 2b8935e commit 14f551c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ def debugger():
SAMPLE_PROGRAM = preprocess(_tree, _symtab)


def test_resolve_breakpoint(debugger):
assert debugger.resolve_breakpoint(2) == 0
def test_resolve_location(debugger):
assert debugger.resolve_location(2) == 0


def test_resolve_breakpoint_out_of_range(debugger):
def test_resolve_location_out_of_range(debugger):
with pytest.raises(ValueError) as e:
debugger.resolve_breakpoint(10)
debugger.resolve_location(10)
assert "could not find corresponding line" in str(e)


def test_resolve_breakpoint_invalid_format(debugger):
def test_resolve_location_invalid_format(debugger):
with pytest.raises(ValueError) as e:
debugger.resolve_breakpoint("a")
debugger.resolve_location("a")
assert "could not parse argument" in str(e)


Expand Down

0 comments on commit 14f551c

Please sign in to comment.