Skip to content

Commit c6f8456

Browse files
committed
Add chain constructor test
1 parent 9712a0b commit c6f8456

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/ndarray/test_lazyexpr.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,13 @@ def test_chain_expressions():
14851485
assert lexpr1.expression == lexpr3.expression
14861486
assert lexpr1.operands == lexpr3.operands
14871487

1488+
# chain constructors
1489+
expr1 = "linspace(0, 10, 100)"
1490+
lexpr1 = blosc2.lazyexpr(expr1)
1491+
lexpr1 *= 2
1492+
assert lexpr1.expression == "((linspace(0, 10, 100)) * 2)"
1493+
assert lexpr1.shape == (100,)
1494+
14881495

14891496
# Test the chaining of multiple persistent lazy expressions
14901497
def test_chain_persistentexpressions():

0 commit comments

Comments
 (0)