Skip to content

Commit c9f7c3f

Browse files
author
Owen Jones
committed
Test that precise EVSs are never initializers
1 parent 878ac1f commit c9f7c3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

regression/LVSA/lvsa_driver.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ def check_contains_per_field_evs(self, expected_number=1, is_initializer=False,
101101
matches = [x for x in matches if x.label.endswith(label)]
102102
assert expected_number == len(matches)
103103

104-
def check_contains_precise_evs(self, expected_number=1, access_path=None, label_suffix=None):
104+
def check_contains_precise_evs(self, expected_number=1, is_initializer=False, access_path=None, label_suffix=None):
105105
matches = [x for x in self.external_value_sets if x.evs_type == EvsType.precise]
106+
if is_initializer is not None:
107+
# Expect True or False
108+
matches = [x for x in matches if x.is_initializer == is_initializer]
106109
if access_path is not None:
107110
# Expect an array of strings, e.g. ['.a', '.b']
108111
matches = [x for x in matches if x.access_path_entries == access_path]

0 commit comments

Comments
 (0)