You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Existence of hamcrest_assertions is usefull, but requires addition of an extra crate. It would be beneficial if user could write test_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 via arg => valueis equal_to X
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.
Closing this. In case something compes up, let's create separate issue and not block 2.0 release.
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: