malsyned / pfstest

Professional Firmware Services Unit Test Framework
Other
1 stars 0 forks source link

Hamcrest-inspired matchers and combinators #31

Open malsyned opened 6 years ago

malsyned commented 6 years ago

Hamcrest has the following matchers that I may want to draw inspiration from. Note that there is some overlap here with Unity's matchers.

array containing an element array containing certain elements in order object whose value is in an array (thing that an any() combinator can do this) allOf() anyOf() Attach a different message string every item in an array matches one matcher is anything is equal (this is the isthe suite) is null (is_the_pointer(NULL) -- but maybe a convenience wrapper?) stringContains stringEndsWith stringStartsWith substring isCloseTo isNaN comparesEqualTo greaterThan greaterThanOrEqualTo lsssThan lessThanOrEqualTo isBlankString (only whitespace) } isEmptyString ("") }-- these two also match NULL isEqualIgnoringCase isEqualIgnoringWhitespace matchesPattern (regex) stringContainsInOrder