mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
...
This commit is contained in:
parent
e1fe3cd4dc
commit
9ff48c7dba
@ -30,9 +30,9 @@ assert not a.is_valid(0, -1) and not a.is_valid(vec2i(0, -1))
|
||||
|
||||
# test get
|
||||
assert a.get(0, 0, -1) == (0, 0)
|
||||
assert a.get(vec2i(1, 3), -1) == (1, 3)
|
||||
assert a.get(2, 0, None) is None
|
||||
assert a.get(vec2i(0, 4), 'S') == 'S'
|
||||
assert a.get(1, 3) == (1, 3)
|
||||
assert a.get(2, 0) is None
|
||||
assert a.get(0, 4, 'S') == 'S'
|
||||
|
||||
# test __getitem__
|
||||
assert a[0, 0] == (0, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user