mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/strscan] Omit tests for #scan_byte and #peek_byte on
TruffleRuby temporary (https://github.com/ruby/strscan/pull/91) The methods were added in #89 but they aren't implemented in TruffleRuby yet. So let's omit them for now to have CI green. https://github.com/ruby/strscan/commit/844d963b56
This commit is contained in:
parent
8896ac0289
commit
8fa6c36492
@ -9,6 +9,7 @@ require 'test/unit'
|
||||
|
||||
module StringScannerTests
|
||||
def test_peek_byte
|
||||
omit("not implemented on TruffleRuby") if RUBY_ENGINE == "truffleruby"
|
||||
s = create_string_scanner('ab')
|
||||
assert_equal 97, s.peek_byte
|
||||
assert_equal 97, s.scan_byte
|
||||
@ -19,6 +20,7 @@ module StringScannerTests
|
||||
end
|
||||
|
||||
def test_scan_byte
|
||||
omit("not implemented on TruffleRuby") if RUBY_ENGINE == "truffleruby"
|
||||
s = create_string_scanner('ab')
|
||||
assert_equal 97, s.scan_byte
|
||||
assert_equal 98, s.scan_byte
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user