We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67a903b commit 98a4943Copy full SHA for 98a4943
spec/truffle/regexp_spec.rb
@@ -0,0 +1,16 @@
1
+# Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved. This
2
+# code is released under a tri EPL/GPL/LGPL license. You can use it,
3
+# redistribute it and/or modify it under the terms of the:
4
+#
5
+# Eclipse Public License version 2.0, or
6
+# GNU General Public License version 2, or
7
+# GNU Lesser General Public License version 2.1.
8
+
9
+require_relative '../ruby/spec_helper'
10
11
+describe "Regexp" do
12
+ it "raise a RegexpError and not a fatal error when it fails to parse in Joni" do
13
+ # On MRI this actually does not raise, but we need to fix Joni first for that
14
+ -> { Regexp.new("\\p{") }.should raise_error(RegexpError)
15
+ end
16
+end
0 commit comments