[ruby/strscan] Mask out this test on JRuby/Windows
See https://github.com/jruby/jruby/issues/7644 for the root issue, which will require fixes to JRuby's regular expression engine, JOni. https://github.com/ruby/strscan/commit/29a65abff2
This commit is contained in:
parent
76a4cdfb02
commit
4c7726516c
@ -465,7 +465,10 @@ module StringScannerTests
|
||||
assert_equal 'foo', s['a']
|
||||
assert_equal 'bar', s['b']
|
||||
assert_raise(IndexError) { s['c'] }
|
||||
assert_raise_with_message(IndexError, /\u{30c6 30b9 30c8}/) { s["\u{30c6 30b9 30c8}"] }
|
||||
# see https://github.com/jruby/jruby/issues/7644
|
||||
unless RUBY_ENGINE == "jruby" && RbConfig::CONFIG['host_os'] =~ /mswin|win32|mingw/
|
||||
assert_raise_with_message(IndexError, /\u{30c6 30b9 30c8}/) { s["\u{30c6 30b9 30c8}"] }
|
||||
end
|
||||
end
|
||||
|
||||
def test_pre_match
|
||||
|
Loading…
x
Reference in New Issue
Block a user