File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,29 +44,29 @@ def test_catch_command_isnt_repeatable
44
44
45
45
def test_catch_works_with_command
46
46
debug_code ( program ) do
47
- type 'catch ZeroDivisionError pre: p "1234 "'
47
+ type 'catch ZeroDivisionError pre: p "catching zero division "'
48
48
assert_line_text ( /#0 BP - Catch "ZeroDivisionError"/ )
49
49
type 'continue'
50
- assert_line_text ( /1234 / )
50
+ assert_line_text ( /catching zero division / )
51
51
type 'continue'
52
52
type 'continue'
53
53
end
54
54
55
55
debug_code ( program ) do
56
- type 'catch ZeroDivisionError do: p "1234 "'
56
+ type 'catch ZeroDivisionError do: p "catching zero division "'
57
57
assert_line_text ( /#0 BP - Catch "ZeroDivisionError"/ )
58
58
type 'continue'
59
- assert_line_text ( /1234 / )
59
+ assert_line_text ( /catching zero division / )
60
60
type 'continue'
61
61
end
62
62
end
63
63
64
64
def test_catch_works_with_condition
65
65
debug_code ( program ) do
66
- type 'catch ZeroDivisionError if: a == 2 do: p "1234 "'
66
+ type 'catch ZeroDivisionError if: a == 2 do: p "catching zero division "'
67
67
assert_line_text ( /#0 BP - Catch "ZeroDivisionError"/ )
68
68
type 'continue'
69
- assert_no_line_text ( /1234 / )
69
+ assert_no_line_text ( /catching zero division / )
70
70
type 'continue'
71
71
end
72
72
end
You can’t perform that action at this time.
0 commit comments