Skip to content

Commit 4f17e94

Browse files
committed
tests: Update tests based on x_m
1 parent 95b7c38 commit 4f17e94

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

tests/test_dimension.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,9 +779,7 @@ def test_expandingbox_like(self, opt):
779779

780780
op = Operator(eqn, opt=opt)
781781

782-
# TODO: Why are bounds overridden here?
783-
op.apply(time=3, x_m=2, x_M=5, y_m=2, y_M=5,
784-
x_ltkn0=0, x_rtkn0=0, y_ltkn0=0, y_rtkn0=0)
782+
op.apply(time=3, x_ltkn0=2, x_rtkn0=2, y_ltkn0=2, y_rtkn0=2)
785783

786784
assert np.all(u.data[0, 2:-2, 2:-2] == 4.)
787785
assert np.all(u.data[1, 2:-2, 2:-2] == 3.)

tests/test_dle.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def test_cache_blocking_structure_subdims():
146146
# zi is rebuilt with name z, so check symbolic max and min are preserved
147147
# Also check the zi was rebuilt
148148
assert not tree[4].dim.is_Block and tree[4].dim is not zi and\
149-
str(tree[4].dim.symbolic_min) == 'z_m + z_ltkn0' and\
149+
str(tree[4].dim.symbolic_min) == 'z_ltkn0' and\
150150
str(tree[4].dim.symbolic_max) == 'z_M - z_rtkn0' and\
151151
tree[4].dim.parent is z
152152

@@ -536,7 +536,7 @@ def test_cache_blocking_imperfect_nest(blockinner):
536536
assert trees[0].root.dim.is_Block
537537
assert trees[1].root.dim.is_Block
538538
assert op1.parameters[7] is trees[0][0].step
539-
assert op1.parameters[10] is trees[0][1].step
539+
assert op1.parameters[9] is trees[0][1].step
540540

541541
u.data[:] = 0.2
542542
v.data[:] = 1.5
@@ -1380,7 +1380,7 @@ def test_nested_cache_blocking_structure_subdims(self, blocklevels):
13801380

13811381
if blocklevels == 1:
13821382
assert not tree[4].dim.is_Block and tree[4].dim is not zi and\
1383-
str(tree[4].dim.symbolic_min) == 'z_m + z_ltkn0' and\
1383+
str(tree[4].dim.symbolic_min) == 'z_ltkn0' and\
13841384
str(tree[4].dim.symbolic_max) == 'z_M - z_rtkn0' and\
13851385
tree[4].dim.parent is z
13861386
elif blocklevels == 2:
@@ -1391,7 +1391,7 @@ def test_nested_cache_blocking_structure_subdims(self, blocklevels):
13911391
assert tree[5].dim.is_Block and tree[5].dim.parent is tree[3].dim and\
13921392
tree[5].dim.root is y
13931393
assert not tree[6].dim.is_Block and tree[6].dim is not zi and\
1394-
str(tree[6].dim.symbolic_min) == 'z_m + z_ltkn0' and\
1394+
str(tree[6].dim.symbolic_min) == 'z_ltkn0' and\
13951395
str(tree[6].dim.symbolic_max) == 'z_M - z_rtkn0' and\
13961396
tree[6].dim.parent is z
13971397

0 commit comments

Comments
 (0)