Skip to content
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

Hamcrest-inspired matchers and combinators #31

Open
malsyned opened this issue Oct 7, 2017 · 0 comments
Open

Hamcrest-inspired matchers and combinators #31

malsyned opened this issue Oct 7, 2017 · 0 comments

Comments

@malsyned
Copy link
Owner

malsyned commented Oct 7, 2017

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 is_the_ 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

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

No branches or pull requests

1 participant