diff options
| author | Haldun Bayhantopcu <haldun@github.com> | 2023-07-26 09:49:57 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-07-26 14:46:20 +0000 |
| commit | 499eb3990faeaac2603787f2a41b2d9625e180dc (patch) | |
| tree | 5de4afb048434756ef070c545a2a1d229d43811a | |
| parent | c680ae2ce1e535196eeb06228176d9308f7cab84 (diff) | |
[ruby/yarp] Fix tests
https://github.com/ruby/yarp/commit/50e745767e
| -rw-r--r-- | test/yarp/errors_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/yarp/errors_test.rb b/test/yarp/errors_test.rb index 2d6aa82aa4..e705a6423c 100644 --- a/test/yarp/errors_test.rb +++ b/test/yarp/errors_test.rb @@ -199,14 +199,12 @@ class ErrorsTest < Test::Unit::TestCase end def test_break_1_2_3 - errors = [ + assert_errors expression("break(1, 2, 3)"), "break(1, 2, 3)", [ ["Expected to be able to parse an expression.", 7..7], ["Expected a closing parenthesis.", 7..7], ["Expected a newline or semicolon after statement.", 13..13], ["Expected to be able to parse an expression.", 13..13], ] - - assert_errors expression("break(1, 2, 3)"), "break(1, 2, 3)", errors end def test_break_1 |
