Commit Graph

24 Commits

Author SHA1 Message Date
Michael Miller edb20e5b2f
Additional handling when comparing ranges against unexpected types 2024-01-27 11:25:59 -07:00
Michael Miller 59ce312341
Fix typos and spelling 2021-11-28 15:45:17 -07:00
Michael Miller 4500ebcddc
Update old references to Value and Block 2021-01-16 11:02:29 -07:00
Davide Paolo Tua 2bf6682816 Fix accidental deletion 2020-02-21 13:23:33 +01:00
Davide Paolo Tua 83ac420273 Add test for fix, fix test for range_matcher 2020-02-21 13:19:27 +01:00
Michael Miller 43dc106c18 Add return type annotations
Addresses Crystal compiler warning about abstract method return types.
2019-09-23 20:32:21 -06:00
Michael Miller ede691dd6a Reorder methods to be in a more standard layout 2019-08-10 11:10:48 -06:00
Michael Miller 898ddcb616 Type annotations for #match? 2019-08-10 10:55:22 -06:00
Michael Miller d5fd21702a Add matcher docs 2019-08-10 10:50:48 -06:00
Michael Miller 520c738f6a Refactor RangeMatcher 2019-08-08 16:47:17 -06:00
Michael Miller e95c81f46e Pass negation flag to matcher
Some matchers need to know if they're negated to work properly and can't
be simply negated afterwards.
2019-07-30 16:19:27 -06:00
Michael Miller 77307f6eb1 Split part of RangeMatcher off as CollectionMatcher
Use CollectionMatcher for `be_within`.
The `#of` method creates a RangeMatcher.
2019-05-16 18:20:08 -06:00
Michael Miller 33841e8888 Sub-type value modifier from MatchDataValue
This includes renaming the types.
2019-03-22 10:55:57 -06:00
Michael Miller 4f6309a032 Rename values to named_tuple in match data types 2019-03-22 10:41:23 -06:00
Michael Miller ee7a91c3dd Add negation wrappers
Fixes the reported expected values when the expectation is negated.
2019-03-06 21:39:28 -07:00
Michael Miller 018e3232cd Update RangeMatcher to use MatchData
There is a compilation error.
It appears that since the last Matcher#match method has been
implemented,
Crystal is finally grouping all of the NamedTuples together.
2019-03-06 15:01:00 -07:00
Michael Miller 5ba03a90ff Swap label and expected value parameters
This matches the partial initializer parameters.
Also cleaned up some code in the Expectation spec.
2019-02-28 15:17:12 -07:00
Michael Miller 0bf106ab2e Placeholders for #match method 2019-02-23 22:33:33 -07:00
Michael Miller 847cc662bd Update docs
Mostly fixes around symbols for syntax.
Added some missing docs and updated incorrect or vague ones.
2019-02-17 23:01:43 -07:00
Michael Miller e2779822b5 Remove unecessary type restrictions 2019-01-31 13:52:41 -07:00
Michael Miller 61a3e6b113 Remove unecessary type restrictions 2019-01-28 10:04:17 -07:00
Michael Miller 90c5364946 Can't use "new" by itself like in Ruby 2019-01-25 13:25:40 -07:00
Michael Miller 3be2302df9 Add range modifier methods 2019-01-25 13:20:17 -07:00
Michael Miller bc45a3bf41 Add basic range matcher 2019-01-25 13:00:19 -07:00