pub fn float() -> ExpectFloatExpand description
Expects a valid email address in the received JSON.
use axum_test::expect_json::expect;
let server = TestServer::new(Router::new())?;
server.get(&"/user/barrington")
.await
.assert_json(&json!({
"name": "Barrington",
"height_in_meters": expect::float().is_in_range(0.5..=2.5),
}));