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

governor: redo tests; bug fixes; perf improvements #146

Merged
merged 16 commits into from
Jul 26, 2022

Conversation

chfanghr
Copy link
Contributor

Will close #76

@chfanghr chfanghr requested a review from emiflake July 15, 2022 14:47
@chfanghr chfanghr force-pushed the connor/governor-negative-tests branch 12 times, most recently from d50780b to 48a4c37 Compare July 19, 2022 14:30
@chfanghr chfanghr force-pushed the connor/governor-negative-tests branch 6 times, most recently from e465a98 to f4458bb Compare July 20, 2022 15:40
@chfanghr chfanghr requested a review from SeungheonOh July 20, 2022 16:12
Copy link
Contributor

@SeungheonOh SeungheonOh left a comment

Choose a reason for hiding this comment

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

Few things:

  • Sample/Governor/Mutate.hs should be moved to Property/Governor.hs as it's for Property testing only.
  • I'm unsure if it's a good idea to make SpecificationTree also compatible with Properties. We should write new helper for checking scripts with Property testing, and leave SpecificationTree for only benchmarking and unit testing. (I'll make new Library for Plutarch Unit testing)

@chfanghr
Copy link
Contributor Author

chfanghr commented Jul 20, 2022

Sample/Governor/Mutate.hs should be moved to Property/Governor.hs as it's for Property testing only.

Actually it's still referenced in Spec.Governor, we test the happy path there currently.

I'm unsure if it's a good idea to make SpecificationTree also compatible with Properties. We should write new helper for checking scripts with Property testing, and leave SpecificationTree for only benchmarking and unit testing. (I'll make new Library for Plutarch Unit testing)

Can totally agree with that, toProp just feels wacky.

@SeungheonOh
Copy link
Contributor

I'll make better interfaces soon. Probably today.

@chfanghr chfanghr force-pushed the connor/governor-negative-tests branch 2 times, most recently from 5a34375 to 5e34fcb Compare July 21, 2022 10:31
@chfanghr chfanghr mentioned this pull request Jul 21, 2022
@chfanghr chfanghr force-pushed the connor/governor-negative-tests branch from 5e34fcb to d391932 Compare July 21, 2022 14:28
@chfanghr chfanghr force-pushed the connor/governor-negative-tests branch from d391932 to 23cc230 Compare July 21, 2022 14:43
@chfanghr chfanghr marked this pull request as ready for review July 21, 2022 14:47
@chfanghr chfanghr mentioned this pull request Jul 25, 2022
@emiflake
Copy link
Member

Update CHANGELOG.md please!

Copy link
Member

@emiflake emiflake left a comment

Choose a reason for hiding this comment

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

Great work! Just a couple typos and I think it's good to go (after CHANGELOG)

Copy link
Member

@emiflake emiflake left a comment

Choose a reason for hiding this comment

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

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Negative Tests for the Governor
3 participants