Skip to content

Commit 844d963

Browse files
authored
Omit tests for #scan_byte and #peek_byte on TruffleRuby temporary (#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.
1 parent fcaf4c1 commit 844d963

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/strscan/test_stringscanner.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
module StringScannerTests
1111
def test_peek_byte
12+
omit("not implemented on TruffleRuby") if RUBY_ENGINE == "truffleruby"
1213
s = create_string_scanner('ab')
1314
assert_equal 97, s.peek_byte
1415
assert_equal 97, s.scan_byte
@@ -19,6 +20,7 @@ def test_peek_byte
1920
end
2021

2122
def test_scan_byte
23+
omit("not implemented on TruffleRuby") if RUBY_ENGINE == "truffleruby"
2224
s = create_string_scanner('ab')
2325
assert_equal 97, s.scan_byte
2426
assert_equal 98, s.scan_byte

0 commit comments

Comments
 (0)