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

Expect-style tests for parser #205

Merged
merged 2 commits into from
Aug 22, 2023
Merged

Expect-style tests for parser #205

merged 2 commits into from
Aug 22, 2023

Conversation

Lupus
Copy link
Contributor

@Lupus Lupus commented Aug 21, 2023

This PR suggests an expect-style framework for testing compiler library and includes some tests for demonstration of the approach.

Sorry for ugly expect output, my Format-fu is pretty low...

src/tests/expectation/dune Outdated Show resolved Hide resolved
@c-cube
Copy link
Collaborator

c-cube commented Aug 21, 2023

This looks very nice, and the Format usage is good!

@Lupus Lupus force-pushed the expect-tests branch 2 times, most recently from eddb516 to aabbc0e Compare August 22, 2023 05:39
@Lupus
Copy link
Contributor Author

Lupus commented Aug 22, 2023

@c-cube I've improved output a bit, and fixed compilation issue on older OCaml version. Please take a look, should be ready to merge.

@c-cube c-cube merged commit 24c1a38 into mransan:master Aug 22, 2023
2 checks passed
@c-cube
Copy link
Collaborator

c-cube commented Aug 23, 2023 via email

@Lupus Lupus deleted the expect-tests branch February 26, 2024 05:47
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