-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
The changes in
1fbfdd3
fail on 3.2 and 3.3, it seems. ruby-head
seems to pass this test.
Details
Failure looks like this:
Run ruby run-test.rb
Loaded strscan from /opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/3.2.0/x86_64-linux/strscan.so
Gem from
Loaded suite run-test
Started
...F
===============================================================================
Failure: test_captures(TestStringScanner)
/home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:751:in `test_captures'
748: s = create_string_scanner("Timestamp: Fri Dec 12 1975 14:39")
749: s.scan("Timestamp: ")
750: s.scan(/(\w+) (\w+) (\d+) (1980)?/)
=> 751: assert_equal(["Fri", "Dec", "12", nil], s.captures)
752: s.scan(/(\w+) (\w+) (\d+) /)
753: assert_nil(s.captures)
754: end
<["Fri", "Dec", "12", nil]> expected but was
<["Fri", "Dec", "12", ""]>
diff:
? ["Fri", "Dec", "12", nil]
? ""
? ???
===============================================================================
/home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:788: [BUG] Segmentation fault at 0x0000000000000014
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
Metadata
Metadata
Assignees
Labels
No labels