From 524eb905013e53833d053eb2279e31f649d3b4be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Sun, 12 Jun 2022 10:24:36 +0200 Subject: [PATCH] api: Make some test assertions more helpful --- crates/ruma-common/tests/api/no_fields.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruma-common/tests/api/no_fields.rs b/crates/ruma-common/tests/api/no_fields.rs index e9bdc263..be69b41b 100644 --- a/crates/ruma-common/tests/api/no_fields.rs +++ b/crates/ruma-common/tests/api/no_fields.rs @@ -60,7 +60,7 @@ fn empty_get_request_http_repr() { .unwrap(); // ... but GET requests' bodies should be empty. - assert!(http_req.body().is_empty()); + assert_eq!(http_req.body().len(), 0); } #[test]