Skip to content

Commit 25f4ded

Browse files
cbmarinitueda
authored andcommitted
test: adds assertions to several run time error tests. This resolves #778.
1 parent 9068fce commit 25f4ded

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

check/features.frm

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,11 +1507,11 @@ StrictRounding d5;
15071507
StrictRounding 5 d;
15081508
.end
15091509
#pend_if wordsize == 2
1510-
runtime_error?("Illegal attempt for strict rounding without activating floating point numbers.")
1511-
runtime_error?("Forgotten #startfloat instruction?")
1512-
runtime_error?("Illegal argument(s) in StrictRounding statement: ''")
1513-
runtime_error?("Illegal argument(s) in StrictRounding statement: 'd5'")
1514-
runtime_error?("Illegal argument(s) in StrictRounding statement: ',d'")
1510+
assert runtime_error?("Illegal attempt for strict rounding without activating floating point numbers.")
1511+
assert runtime_error?("Forgotten #startfloat instruction?")
1512+
assert runtime_error?("Illegal argument(s) in StrictRounding statement: ''")
1513+
assert runtime_error?("Illegal argument(s) in StrictRounding statement: 'd5'")
1514+
assert runtime_error?("Illegal argument(s) in StrictRounding statement: ',d'")
15151515
*--#] strictrounding_error :
15161516
*--#[ chop :
15171517
#StartFloat 15d
@@ -1658,10 +1658,10 @@ Transform {float_,f}, selectargs(1,2);
16581658
Print;
16591659
.end
16601660
#pend_if wordsize == 2
1661-
runtime_error?("Illegal use of a transform statement and float_")
1662-
runtime_error?("Illegal use of a transform statement and float_")
1663-
runtime_error?("Illegal use of a transform statement and float_")
1664-
runtime_error?("Illegal use of a transform statement and float_")
1661+
assert runtime_error?("Illegal use of a transform statement and float_")
1662+
assert runtime_error?("Illegal use of a transform statement and float_")
1663+
assert runtime_error?("Illegal use of a transform statement and float_")
1664+
assert runtime_error?("Illegal use of a transform statement and float_")
16651665
*--#] transform_float_error :
16661666
*--#[ argument_float :
16671667
#StartFloat 24d
@@ -2275,7 +2275,7 @@ EOF
22752275
#Startfloat 100bd,MZV = 10
22762276
.end
22772277
#pend_if wordsize == 2
2278-
runtime_error?("Illegal parameter in #StartFloat: 100bd,MZV = 10")
2278+
assert runtime_error?("Illegal parameter in #StartFloat: 100bd,MZV = 10")
22792279
*--#] startfloat_error :
22802280
*--#[ mzv_error_1:
22812281
#StartFloat 10d, MZV=2
@@ -2284,8 +2284,8 @@ Evaluate mzv_;
22842284
.end
22852285
#pend_if wordsize == 2
22862286
#pend_if mpi?
2287-
runtime_error?("Error: Weight of Euler/MZV sum greater than 2.")
2288-
runtime_error?("Please increase the maximum weight in #startfloat.")
2287+
assert runtime_error?("Error: Weight of Euler/MZV sum greater than 2.")
2288+
assert runtime_error?("Please increase the maximum weight in #startfloat.")
22892289
*--#] mzv_error_1 :
22902290
*--#[ mzv_error_2:
22912291
#StartFloat 10d, MZV=3
@@ -2294,7 +2294,7 @@ Evaluate mzv_;
22942294
.end
22952295
#pend_if wordsize == 2
22962296
#pend_if mpi?
2297-
runtime_error?("Divergent MZV in CalculateMZV")
2297+
assert runtime_error?("Divergent MZV in CalculateMZV")
22982298
*--#] mzv_error_2 :
22992299
*--#[ mzv_error_3:
23002300
#StartFloat 10d, MZV=3
@@ -2303,7 +2303,7 @@ Evaluate mzv_;
23032303
.end
23042304
#pend_if wordsize == 2
23052305
#pend_if mpi?
2306-
runtime_error?("Illegal index[0] in CalculateMZV: -2")
2306+
assert runtime_error?("Illegal index[0] in CalculateMZV: -2")
23072307
*--#] mzv_error_3 :
23082308
*--#[ mzv_error_4:
23092309
#StartFloat 10d, MZV=3
@@ -2312,7 +2312,7 @@ Evaluate mzvhalf_;
23122312
.end
23132313
#pend_if wordsize == 2
23142314
#pend_if mpi?
2315-
runtime_error?("Illegal index[1] in CalculateMZVhalf: -1")
2315+
assert runtime_error?("Illegal index[1] in CalculateMZVhalf: -1")
23162316
*--#] mzv_error_4 :
23172317
*--#[ mzv_error_5:
23182318
#StartFloat 10d, MZV=3
@@ -2321,7 +2321,7 @@ Evaluate euler_;
23212321
.end
23222322
#pend_if wordsize == 2
23232323
#pend_if mpi?
2324-
runtime_error?("Divergent Euler sum in CalculateEuler")
2324+
assert runtime_error?("Divergent Euler sum in CalculateEuler")
23252325
*--#] mzv_error_5 :
23262326
*--#[ humanstats :
23272327
#-

0 commit comments

Comments
 (0)