Skip to content

Commit 35151b3

Browse files
committed
Add unit tests for lastError
1 parent 708d880 commit 35151b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: M2/Macaulay2/tests/normal/error-messages.m2

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
assert(try 1/0 else lastError#1 == "division by zero")
2+
lastError = null
3+
assert(lastError === null)
4+
15
stderr << "--testing the error messages must be done manually" << endl
26
end
37

0 commit comments

Comments
 (0)