Skip to content

Commit

Permalink
Use TestFiles option in JSON package
Browse files Browse the repository at this point in the history
Also bump the version number of JSON
  • Loading branch information
d-torrance committed Sep 29, 2024
1 parent 44f6447 commit c8efd14
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions M2/Macaulay2/packages/JSON.m2
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
newPackage(
"JSON",
Headline => "JSON encoding and decoding",
Version => "0.2",
Date => "January 28, 2024",
Version => "0.3",
Date => "September 28, 2024",
Authors => {{
Name => "Doug Torrance",
Email => "[email protected]",
HomePage => "https://webwork.piedmont.edu/~dtorrance"}},
Keywords => {"System"},
PackageImports => {"Parsing"},
AuxiliaryFiles => true)
AuxiliaryFiles => true,
TestFiles => {"test-parse.m2", "test-encode.m2"})

---------------
-- ChangeLog --
---------------

-*
0.3 (2024-09-28, M2 1.24.11)
* use new TestFiles options instead of TEST for loading tests
0.2 (2024-01-24, M2 1.23)
* use single-string version of exportFrom
* use null coalescing operator in toJSON
Expand Down Expand Up @@ -357,6 +361,3 @@ for tst in sort select(tsts, f -> match("^y_", f)) do (
format json << ", " << toExternalString fromJSON json << ")" << endl)
close outfile
///
TEST get(currentPackage#"auxiliary files" | "test-parse.m2")
TEST get(currentPackage#"auxiliary files" | "test-encode.m2")

0 comments on commit c8efd14

Please sign in to comment.