Skip to content

Commit b48128e

Browse files
committed
try to get coverage up a bit
1 parent 24665b9 commit b48128e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/analysis/measure_id/test_measure_id.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,25 @@ def results_of_variables(kernel, variable_names):
2828
return results
2929

3030

31+
def test_subset_eq_MeasureIdBool():
32+
33+
m0 = MeasureIdBool(idx=1, predicate=Predicate.IS_ONE)
34+
m1 = MeasureIdBool(idx=1, predicate=Predicate.IS_ONE)
35+
36+
assert m0.is_subseteq(m1)
37+
38+
# not equivalent if predicate is different
39+
m2 = MeasureIdBool(idx=1, predicate=Predicate.IS_ZERO)
40+
41+
assert not m0.is_subseteq(m2)
42+
43+
# not equivalent if index is different either,
44+
# they are only equivalent if both index and predicate match
45+
m3 = MeasureIdBool(idx=2, predicate=Predicate.IS_ONE)
46+
47+
assert not m0.is_subseteq(m3)
48+
49+
3150
def test_add():
3251
@squin.kernel
3352
def test():

0 commit comments

Comments
 (0)