-
-
Notifications
You must be signed in to change notification settings - Fork 199
Diamond: Implement property-based tests #843
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
Merged
sshine
merged 31 commits into
exercism:master
from
chiroptical:diamond_property_based_tests
Oct 1, 2019
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
3bfe932
Implement basic property based test for diamond
chiroptical 3090372
Update package.yaml dependencies and bump version number
chiroptical 9cc8d51
Use `elements` from QuickCheck
chiroptical a1916de
Add spacing between PBTs and unit tests
chiroptical 95314a5
Use singular name for the `Gen Char` function
chiroptical 57a29dd
Minor commit to fix current comments
chiroptical 359f554
Length of a diamond should be odd
chiroptical 66645f4
Top and bottom of a diamond should be equal
chiroptical 279e775
Check the middle of the diamond for correctness
chiroptical bf290f0
Check dimensionality of diamond is correct
chiroptical f875947
Clarify test descriptions, use maintainable character generator, add …
chiroptical b7d89c0
Implement start-end-char test, clean up fromMaybe from individual tests
chiroptical aa37333
Use elements over suchThat for genAlphaChar
chiroptical 642e1e0
Add QuickCheck to solution package.yaml
chiroptical 299d14b
Replace partition with filter
chiroptical 1e9ee3c
Avoid incomplete implementation checkFirstAndLastCharEq, inline funct…
chiroptical 18371a8
Minor stylistic update for shrinkNonAlphaChar
chiroptical f89bd5a
Update exercises/diamond/test/Tests.hs
chiroptical 4554d26
Filter non-space characters from rows instead of only letter
chiroptical b253952
Merge branch 'diamond_property_based_tests' of github.com:barrymoo/ha…
chiroptical f7b4085
Inline topEqualToBottom and remove unnecessary checkMiddle
chiroptical eb61cce
Inline checkCorrectDimensions, add a friendly error message upon failure
chiroptical 51088de
Clean up to eliminate CI warnings
sshine d268994
Fix example solution after adding property-based tests
sshine cebda94
Also remove 'ord' as import
sshine 6dc6a97
diamond: unindent imports
ef86530
Reorder imports alphabetically
sshine 2978792
Align style of import with existing imports
sshine 078b8fd
Reindent let-in
sshine ca1b6f4
Reorder indents: J < N, n < u
sshine 6fcd7a8
Reindent if-then-else
sshine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ tests: | |
dependencies: | ||
- diamond | ||
- hspec | ||
- QuickCheck |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.