summaryrefslogtreecommitdiff
path: root/test/ruby/test_regexp.rb
diff options
context:
space:
mode:
authorTSUYUSATO Kitsune <[email protected]>2023-03-13 15:46:41 +0900
committer<[email protected]>2023-03-13 15:46:41 +0900
commite22c4e8877677ff90805e4a4dcbdef80f4220136 ()
treecdfd0c7168e8ef682454715408baa84d6ded5b06 /test/ruby/test_regexp.rb
parented269c81aa68ba87e9da2fe4c0c2227ea0689eca (diff)
[Bug #19467] correct cache points and counting failure on `OP_ANYCHAR_STAR_PEEK_NEXT` (#7454)
Notes: Merged-By: makenowjust <[email protected]>
-rw-r--r--test/ruby/test_regexp.rb10
1 files changed, 10 insertions, 0 deletions
@@ -1755,6 +1755,16 @@ class TestRegexp < Test::Unit::TestCase
assert_equal("10:0:0".match(pattern)[0], "10:0:0")
end
def test_linear_time_p
assert_send [Regexp, :linear_time?, /a/]
assert_send [Regexp, :linear_time?, 'a']