Skip to content

Add property tests to resistor-color-duo (remake)#928

Merged
sshine merged 3 commits intoexercism:masterfrom
sshine:resistor-duo-property-tests
Nov 15, 2020
Merged

Add property tests to resistor-color-duo (remake)#928
sshine merged 3 commits intoexercism:masterfrom
sshine:resistor-duo-property-tests

Conversation

@sshine
Copy link
Copy Markdown
Contributor

@sshine sshine commented Nov 14, 2020

This PR resumes the work of and closes #907.

#907 appears to not have "Allow edits by maintainers" enabled, so I cannot push any changes there.

The only difference that is not already discussed in the feedback of #907 is that instance Arbitrary Color was replaced with forAll colorGen. This removes the need for suppressing orphan instances and is generally a better way to express the relationship between properties and particular generators. For more background on this choice, read the parts of the FPComplete article QuickCheck, Hedgehog, Validity that isn't about shrinking.

This PR could be squash-merged since my commit message is a bit meta.

The important part is addressing the actual change of #907.

@sshine
Copy link
Copy Markdown
Contributor Author

sshine commented Nov 14, 2020

@tejasbubane: Would you care to review these changes? I'd like to get your work pushed out.

tejasbubane and others added 3 commits November 14, 2020 06:02
- Invalid local file link
- Remove reference to Hedgehog here
- Small modifications to phrasings
- Simplified list of suggested properties
- Use `-` for bullets instead of `*`
- Small modifications to Test.QuickCheck imports
- Changed `context` back to `describe` for conformity
- derive `Enum` and `Bounded` for `colorGen`
- Use `forAll` instead of `Arbitrary`
@tejasbubane
Copy link
Copy Markdown
Member

@sshine Sorry #907 slipped through the cracks for me.

@sshine sshine merged commit 02b0582 into exercism:master Nov 15, 2020
@sshine sshine deleted the resistor-duo-property-tests branch November 15, 2020 07:12
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.

3 participants