From c8efd14446ff705463b97715117fcb55ae044bcc Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sat, 21 Sep 2024 09:05:20 -0400 Subject: [PATCH] Use TestFiles option in JSON package Also bump the version number of JSON --- M2/Macaulay2/packages/JSON.m2 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/M2/Macaulay2/packages/JSON.m2 b/M2/Macaulay2/packages/JSON.m2 index fde1018798..71eb87a412 100644 --- a/M2/Macaulay2/packages/JSON.m2 +++ b/M2/Macaulay2/packages/JSON.m2 @@ -1,15 +1,16 @@ 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 => "dtorrance@piedmont.edu", HomePage => "https://webwork.piedmont.edu/~dtorrance"}}, Keywords => {"System"}, PackageImports => {"Parsing"}, - AuxiliaryFiles => true) + AuxiliaryFiles => true, + TestFiles => {"test-parse.m2", "test-encode.m2"}) --------------- -- ChangeLog -- @@ -17,6 +18,9 @@ newPackage( -* +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 @@ -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")