Skip to content

Commit 2a48e4b

Browse files
committed
use assertion rather than printing warning
1 parent 2c5395a commit 2a48e4b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source/linear-algebra/exercises/outcomes/AT/AT5/generator.sage

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ class Generator(BaseGenerator):
125125
otimes = lambda c,v : theta(times(c,untheta(v)))
126126

127127
trueproperties, falseproperties = verify(oplus,otimes)
128+
128129
for prop in true_no_check_properties:
129-
if prop in trueproperties.keys():
130-
trueproperties.pop(prop)
131-
else:
132-
print("WARNING: Property "+prop + " was false.")
130+
assert prop in trueproperties.keys()
131+
trueproperties.pop(prop)
132+
133133
trueproperty, verification = choice(list(trueproperties.items()))
134134

135135
return {

0 commit comments

Comments
 (0)