-
Notifications
You must be signed in to change notification settings - Fork 38
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
is
and it
modifiers have to be first class citizens
#75
Milestone
Comments
All cases that have to be added (preferably in 2.1 release) were converted into separate issues. Rest seem to be unimportant, unless someone turns up with use case. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Existence of
hamcrest_assertions
is usefull, but requires addition of an extra crate. It would be beneficial if user could writetest_case(args => is ...)
without extra work.For first release, for all assertions provided by
hamcrest2
lib we should either cover it with our own syntax or mention replacement/why it's not implemented.Later we'll be able to expand functionality of
is|it
on our own.General matchers
eq
- already covered viaarg => value
is equal_to Xeq
lt
is less_than Xleq
is less_or_equal_than Xgt
is greater_than Xgeq
is greater_or_equal_than Xtype_of
- do we need that?it (not) matches_regex ...
#80Numerical matchers
close_to
is almost_equal_to XFilesystem matchers
path_exists
is existing_pathfile_exists
is filedir_exists
is dirOption and Result
matches Ok(5)
can be usedhas
-matches Ok(v) if v != 5
ok
-matches Ok(_)
&matches Err(_)
err
- samesome
- samenone
- sameCollection matchers
contains
it contains Xcontains_exactly
-matches vec![1, 2, 3]
&matches [1, 2, 3]
contains_in_order
it contains_in_order [X, Y, Z]is (not) len ...
#81is (not) empty
#82Compound matchers
all
any
Misc
is(bool)
- supported viaarg => value
anything
- useless intest_case
contextThe text was updated successfully, but these errors were encountered: