Skip to content

Make bitmaskWithRejectionM inclusive in the upper bound#62

Merged
lehins merged 1 commit intoinstances-and-warningsfrom
range-inclusive
Mar 30, 2020
Merged

Make bitmaskWithRejectionM inclusive in the upper bound#62
lehins merged 1 commit intoinstances-and-warningsfrom
range-inclusive

Conversation

@curiousleo
Copy link
Copy Markdown
Collaborator

@curiousleo curiousleo commented Mar 30, 2020

... as the UniformRange documentation says.

Builds on top of #58. I suggest we just merge this PR into instances-and-warnings to make this part of #58.

@curiousleo curiousleo requested a review from lehins March 30, 2020 13:51
tests/Spec.hs Outdated
, integralSpec @CIntMax
, integralSpec @CUIntMax
, integralSpec @Integer
, rangeSpec @Word8
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There is no need for all of these rangeSpec calls here, integralSpec invokes rangeSpec

I structured it in such a way that you only need specify a type only once and all of the applicable specs should go in there, precisely to avoid this sort of redundancy

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

My bad! I've removed the rangeSpec calls for Char and Bool now since they are already covered by integralSpec: feac91f#diff-47e9594b3c7ba1c5f6e32c4a96aead95R43-R44

@lehins lehins merged commit ff9ba76 into instances-and-warnings Mar 30, 2020
@lehins
Copy link
Copy Markdown
Collaborator

lehins commented Mar 30, 2020

LGTM

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