Skip to content

Commit

Permalink
moved pseudocodeClosureClass def down, fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
pzinn committed Jul 18, 2024
1 parent 7d6a777 commit fe75923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion M2/Macaulay2/d/expr.d
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ export compiledFunctionClosureClass := newtypeof(functionClass);
export symbolClass := newbasictype();
export keywordClass := newtypeof(symbolClass);
export pseudocodeClass := newbasictype();
export pseudocodeClosureClass := newtypeof(pseudocodeClass);
export mysqlConnectionClass := newbasictype();
export mysqlFieldClass := newbasictype();
export mysqlResultClass := newbasictype();
Expand Down Expand Up @@ -347,6 +346,7 @@ export RRiClass := newbignumbertype();
export pointerClass := newbasictype();
export atomicIntClass := newbasictype();
-- all new types, dictionaries, and classes go just above this line, if possible, so hash codes don't change gratuitously!
export pseudocodeClosureClass := newtypeof(pseudocodeClass);


--Error Handling
Expand Down
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 fe75923

Please sign in to comment.