-
Notifications
You must be signed in to change notification settings - Fork 3
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 ana and ana_action tests #9
base: main
Are you sure you want to change the base?
Conversation
@jpoly1219 does this handle all of the rules from the paper? if not, can you create a progress checklist similar to hazelgrove/hazel#1197 with all of the rule names from the paper? |
…has major issues, I believe I know what they are but I will fix it next week hopefully
test/Test_type_action.re
Outdated
let given: option((Hazelnut.Zexp.t, Hazelnut.Htyp.t)) = | ||
Hazelnut.syn_action(ctx, (ze, t), a); | ||
let expected: option((Hazelnut.Zexp.t, Hazelnut.Htyp.t)) = | ||
Some((RAsc(Lit(1), RArrow(Num,Cursor(Hole))), Arrow(Num,Hole))); |
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.
this is not correct
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.
Should be fixed now. I wrapped the literal in a lambda expression
Motivation:
Adds to #7.
I added
erase_exp
andsyn
tests on the last pull request that has been merged. That left me withana
,syn_action
, andana_action
to implement. Razeen Maroof and I decided to split the load into two, where I decided to implementana
andana_action
.Changes:
ana
andana_action
tests.ppx_deriving.show
ppx_deriving.show
as dependency