pub fn is_fractional_number() -> JsonPredicateMatcher<impl Fn(&Value) -> bool, &'static str, &'static str>Expand description
Matches JSON numbers that have a non-zero fractional part.
ยงExamples
assert_that!(j!(3.5), json::is_fractional_number());
assert_that!(j!(3), not(json::is_fractional_number()));
assert_that!(j!(3.0), not(json::is_fractional_number()));