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

Fix init value for List and nondet value for constructors with no params #16

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

bugarela
Copy link
Collaborator

@bugarela bugarela commented Apr 8, 2024

Hello :octocat:

This contains 2 small fixes that I've been saving to test/show the power of our new integration tests. Review by commit and the snapshots should show you exactly the impact of the change.

Some explanation of the changes is also on the commit descriptions, but the snapshots should be of more help.

bugarela added 2 commits April 8, 2024 15:54
Lists in rust actually type constructors, and we were treating them as
concrete types
Add a hack to introduce an empty auxiliary definition to the nondet
value, so the end value gets translated to `pure val` (instead of
`nondet`) and doesn't have a `.oneOf()`.
@bugarela bugarela requested a review from p-offtermatt April 8, 2024 19:07
Copy link
Member

@p-offtermatt p-offtermatt left a comment

Choose a reason for hiding this comment

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

LGTM, the snapshot tests are indeed very powerful!

@bugarela bugarela merged commit 3015c74 into main Apr 9, 2024
1 check passed
@bugarela bugarela deleted the gabriela/small-fixes branch April 9, 2024 11:21
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