Skip to content

Commit

Permalink
fixed error start point location in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
pzinn authored and mahrud committed Aug 9, 2024
1 parent d7d3e6e commit 4bb2b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M2/Macaulay2/tests/normal/capture.m2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ o2 : Matrix K <-- K\n" | ".*", out))

-- printing errors
(err, out) = capture "1/0"
assert(err and match("\\A\ni1 : 1/0\ncurrentString:1:2:\\(3\\):\\[.\\]: error: division by zero\n\\Z", out))
assert(err and match("\\A\ni1 : 1/0\ncurrentString:1:1:\\(3\\):\\[.\\]: error: division by zero\n\\Z", out))

-- make sure runaway existing private symbols are not changed
-- TODO: how can we prevent new methods or hooks from escaping capture?
Expand Down

0 comments on commit 4bb2b0c

Please sign in to comment.