Skip to content
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

Convert parser tests to suite format, part 3 #1284

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

jbouwman
Copy link
Collaborator

@jbouwman jbouwman commented Oct 2, 2024

Merge individual test cases into per-function files according to model established in #1274, #1278

  • convert and, attribute, body, break, cond, continue, declare, let, toplevel

Several test cases which parse but do not compile are disabled pending review according to comments in #1272, #1274, #1278

Copy link
Collaborator

@Izaakwltn Izaakwltn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One test change in parse-toplevel, otherwise good!

error: Malformed monomophize attribute
--> test:3:0
|
3 | (monomorphize 5)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error message: This should probably be either "unexpected trailing form", pointing at only 5, or something monomorphize specific like "monomorphize takes no arguments"

error: Unknown repr attribute
--> test:3:6
|
3 | (repr :hello)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(repr :hello) should be added, right? /s


(package coalton-unit-tests)

(monomorphize)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(monomorphize)
(declare x UFix)
(define x 2)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can take off (:disable) :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it!

@jbouwman jbouwman force-pushed the test-suite-3 branch 2 times, most recently from 2ab00cc to a1237ca Compare October 2, 2024 21:57
- convert and, attribute, body, break, cond, continue, declare, let, toplevel
@jbouwman jbouwman merged commit 2a2b0bf into coalton-lang:main Oct 2, 2024
33 checks passed
@jbouwman jbouwman deleted the test-suite-3 branch October 3, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants