-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow lazily-evaluated code as argument to TEST #3490
base: development
Are you sure you want to change the base?
Commits on Sep 28, 2024
-
Store operator in functionCode objects
This way, we can recognize when when is a test
Configuration menu - View commit details
-
Copy full SHA for 692f9e9 - Browse repository at this point
Copy the full SHA 692f9e9View commit details -
Add new type of operator ("thunk") for creating nullary functions
TEST will be one. Parsed as an Arrow with a dummy lhs
Configuration menu - View commit details
-
Copy full SHA for a5f6300 - Browse repository at this point
Copy the full SHA a5f6300View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2e1e1d - Browse repository at this point
Copy the full SHA e2e1e1dView commit details -
Update behavior of TEST keyword
Now creates a nullary function containing the test's code rather than just computing the location of the string.
Configuration menu - View commit details
-
Copy full SHA for 357b426 - Browse repository at this point
Copy the full SHA 357b426View commit details -
Make TestInput (now TestClosure) a child of FunctionClosure
We get most of the desired methods for free via inheritance. We keep TestInput around as a synonym for now
Configuration menu - View commit details
-
Copy full SHA for 3656742 - Browse repository at this point
Copy the full SHA 3656742View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54f727d - Browse repository at this point
Copy the full SHA 54f727dView commit details -
Adapt "check" for tests as functions
We call each test, and if it returns a string, then it's a traditional test that we should try to capture. Otherwise, we're done! A couple things: - Tests run this way don't produce any output, so debugging is harder. In particular, Verbose => true doesn't do anything. - We print "calling" *after* we're done running the test, since we don't know if it returns a string or not.
Configuration menu - View commit details
-
Copy full SHA for ad8384b - Browse repository at this point
Copy the full SHA ad8384bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8448e54 - Browse repository at this point
Copy the full SHA 8448e54View commit details -
Update capture(TestClosure) for new test behavior
Run a test, and if it returns a string (i.e., it's a traditional test), then capture that string.
Configuration menu - View commit details
-
Copy full SHA for 87361bd - Browse repository at this point
Copy the full SHA 87361bdView commit details
Commits on Sep 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c43056b - Browse repository at this point
Copy the full SHA c43056bView commit details -
Adapt packages that use "TEST get(...)" for new test behavior
currentFileDirectory will no likely no longer be the correct path to the test files, so we use the packages' "auxiliary files" keys to find them.
Configuration menu - View commit details
-
Copy full SHA for 5772ffc - Browse repository at this point
Copy the full SHA 5772ffcView commit details -
Convert TerraciniLoci tests to functions as proof of concept
Also bump package to version 0.2
Configuration menu - View commit details
-
Copy full SHA for 5be1c7b - Browse repository at this point
Copy the full SHA 5be1c7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0318cec - Browse repository at this point
Copy the full SHA 0318cecView commit details -
Don't capture examples with TEST keyword
Otherwise we'll actually add a test to the current package.
Configuration menu - View commit details
-
Copy full SHA for 00af1af - Browse repository at this point
Copy the full SHA 00af1afView commit details -
Update TEST doc with new behavior
Also add "tests" to SeeAlso section
Configuration menu - View commit details
-
Copy full SHA for 5d46294 - Browse repository at this point
Copy the full SHA 5d46294View commit details -
Add TestFiles option to newPackage
List of files to install in package test directory when running installPackage.
Configuration menu - View commit details
-
Copy full SHA for 44f6447 - Browse repository at this point
Copy the full SHA 44f6447View commit details -
Use TestFiles option in JSON package
Also bump the version number of JSON
Configuration menu - View commit details
-
Copy full SHA for c8efd14 - Browse repository at this point
Copy the full SHA c8efd14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93c1355 - Browse repository at this point
Copy the full SHA 93c1355View commit details