Skip to content

Commit 1522d02

Browse files
committed
add test for bytearray.startswith tuple
1 parent 0602521 commit 1522d02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_bytes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,8 @@ def test_startswith():
442442
assert b.startswith(b"h")
443443
assert not b.startswith(b"hellow")
444444
assert not b.startswith(b"ha")
445+
assert b.startswith((b"hellow", b"he"))
446+
assert not b.startswith((b"hellow", b"ha"))
445447

446448

447449
def test_endswith():

0 commit comments

Comments
 (0)