pub fn float() -> ExpectFloatExpand description
Expect a floating point number. See ExpectFloat for further methods to
define what is expected. Such as the range it is expected to be within,
or if it should be positive or negative.
use axum_test::expect_json;
let server = TestServer::new(Router::new())?;
server.get(&"/user/barrington")
.await
.assert_json(&json!({
"name": "Barrington",
"height_in_meters": expect_json::float(),
}));