summaryrefslogtreecommitdiff
path: root/test/strscan/test_stringscanner.rb
diff options
context:
space:
mode:
authorAndrii Konchyn <[email protected]>2024-03-27 02:39:16 +0200
committerHiroshi SHIBATA <[email protected]>2024-03-27 12:17:01 +0900
commit8fa6c364925bff4e704d4c0fd73555fb33aa7029 (patch)
treeede8e2ea96223cd70b1ddd95d454813609a47d48 /test/strscan/test_stringscanner.rb
parent8896ac0289dcd7a6c9c4a7fd6ccd4cc2dae30507 (diff)
[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
Diffstat (limited to 'test/strscan/test_stringscanner.rb')
-rw-r--r--test/strscan/test_stringscanner.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/strscan/test_stringscanner.rb b/test/strscan/test_stringscanner.rb
index 2884b8ef05..143cf7197d 100644
--- a/test/strscan/test_stringscanner.rb
+++ b/test/strscan/test_stringscanner.rb
@@ -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