Lines Matching full:some
26 /// verify_that!(Some("Some value"), some(eq("Some value")))?; // Passes
30 /// verify_that!(None::<&str>, some(eq("Some value")))?; // Fails
34 /// verify_that!(Some("Some value"), some(eq("Some other value")))?; // Fails
41 pub fn some<T: Debug>(inner: impl Matcher<ActualT = T>) -> impl Matcher<ActualT = Option<T>> { in some() function
59 (_, Some(t)) => { in explain_match()
82 use super::some;
89 let matcher = some(eq(1)); in some_matches_option_with_value()
91 let result = matcher.matches(&Some(1)); in some_matches_option_with_value()
98 let matcher = some(eq(1)); in some_does_not_match_option_with_wrong_value()
100 let result = matcher.matches(&Some(0)); in some_does_not_match_option_with_wrong_value()
107 let matcher = some(eq::<i32, _>(1)); in some_does_not_match_option_with_none()
116 let result = verify_that!(Some(2), some(eq(1))); in some_full_error_message()
121 Value of: Some(2) in some_full_error_message()
123 Actual: Some(2), in some_full_error_message()
134 some(eq::<i32, _>(1)).describe(MatcherResult::Match), in some_describe_matches()
142 some(eq::<i32, _>(1)).describe(MatcherResult::NoMatch), in some_describe_does_not_match()
149 verify_that!(some(eq::<i32, _>(1)).explain_match(&None), displays_as(eq("which is None"))) in some_explain_match_with_none()
155 some(eq(1)).explain_match(&Some(1)), in some_explain_match_with_some_success()
163 some(eq(1)).explain_match(&Some(2)), in some_explain_match_with_some_fail()