Skip to content

Commit 412d010

Browse files
kaushikcfdinducer
authored andcommitted
Test NormalizedSlice as a valid indexee.
1 parent 9295928 commit 412d010

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/test_pytato.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,6 +2064,12 @@ def test_replace_if_different_on_idx_lambda():
20642064
assert 3*x == new_expr
20652065

20662066

2067+
def test_normalized_slice_is_valid_indexee():
2068+
from pytato.array import NormalizedSlice
2069+
a = pt.make_placeholder("a", 10)
2070+
assert a[NormalizedSlice(0, 10, 1)] == a[:]
2071+
2072+
20672073
if __name__ == "__main__":
20682074
import os
20692075
if "INVOCATION_INFO" in os.environ:

0 commit comments

Comments
 (0)