You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/duktape-rb/files/duktape-rb-2.3.0.0_duktape-...

29 lines
677 B

The parse-error message asserted by two of the tests has changed since
duktape-2.3.0, it is now
# encoding: ASCII-8BIT
parse error (line 1, end of input)
This should hopefully cover both cases.
--- a/test/test_duktape.rb
+++ b/test/test_duktape.rb
@@ -102,7 +102,7 @@
@ctx.eval_string('{')
end
- assert_equal "parse error (line 1)", err.message
+ assert_match /parse error [(]line 1/, err.message
end
def test_type_error
@@ -160,7 +160,7 @@
@ctx.exec_string('{')
end
- assert_equal "parse error (line 1)", err.message
+ assert_match /parse error [(]line 1/, err.message
end
def test_type_error