summaryrefslogtreecommitdiff
path: root/dev-ruby/duktape-rb/files/duktape-rb-2.3.0.0_duktape-2.5.0-tests.patch
blob: 20228c480da88efcc3a493e659fe3eaece17ecf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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