diff options
| author | Mike Dalessio <mike.dalessio@gmail.com> | 2023-08-17 16:44:43 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-08-18 12:51:14 +0000 |
| commit | 2800d1fd370e267d4379a4029a7d6e799387cd97 (patch) | |
| tree | 549069ba48e7cb6f8ff81944b2641ab916dfe6f4 /test | |
| parent | 20106fe2274a88b8bea5413e3d7e9534f595d8a7 (diff) | |
[ruby/yarp] fix: unterminated % in arguments
https://github.com/ruby/yarp/commit/efb3102369
Diffstat (limited to 'test')
| -rw-r--r-- | test/yarp/errors_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/yarp/errors_test.rb b/test/yarp/errors_test.rb index 3b880eda85..355e7a8aff 100644 --- a/test/yarp/errors_test.rb +++ b/test/yarp/errors_test.rb @@ -155,6 +155,13 @@ class ErrorsTest < Test::Unit::TestCase ] end + def test_unterminated_argument_expression + assert_errors expression('a %'), 'a %', [ + ["Unexpected end of input", 2..3], + ["Expected a value after the operator.", 3..3], + ] + end + def test_1_2_3 assert_errors expression("(1, 2, 3)"), "(1, 2, 3)", [ ["Expected to be able to parse an expression.", 2..2], |
