-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add anoma nockma tests #3134
Add anoma nockma tests #3134
Conversation
542337d
to
b785900
Compare
1eda2e1
to
34275a5
Compare
34275a5
to
97ebd2b
Compare
97ebd2b
to
f803707
Compare
56d35bd
to
7241408
Compare
This reverts commit 3b28dbd.
* Closes #2968 * Implements detection of function-like definitions, which either: - have some arguments on the left of `:`, or - have at least one clause. * Only function-like definitions are recursive. * Non-recursive definitions are not mutually recursive either, and can be used only after their definition. This necessitates rearranging some definitions in existing Juvix code. * Changes the scoping of identifiers in record updates. Now field names on the right side don't refer to the old values of the record fields but to identifiers in scope defined outside the record update. To refer to old values, one needs to explicitly use record projections, e.g. ``` r@Rec{x := Rec.x r} ```
7241408
to
acb2e95
Compare
The argsPath in stdlib call should be unconditionally [R, L] i.e the 'arguments' slot of the stdlib function.
| -- | The anoma node returns a response with an error | ||
ClassNodeError | ||
| -- | The anoma node returns a value but it doesn't match the expected value | ||
ClassWrong |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need this one anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we keep this for now as some of the ClassNodeError and ClassTrace may become ClassWrong once we're able to run them.
I've classified the tests in 4 categories:
Working
. The test works as expected.Trace
. We need more work on our end to get the traces from the anoma node and check that they match the expected result.NodeError
. The anoma node returnsfailed to prove the nock program
.Wrong
. The anoma node returns some value that does not match the expected value.