summaryrefslogtreecommitdiffstats
path: root/tests/file_json.rs
diff options
context:
space:
mode:
authorDaniel Eades <danieleades@hotmail.com>2021-12-27 11:06:30 +0000
committerDaniel Eades <danieleades@hotmail.com>2021-12-29 12:12:06 +0000
commit34439bd4a508cca344414a88e970cc7c53cabaa0 (patch)
treebb5d1ce19f51cc18b8f0844e8ddc3bae69f4aeef /tests/file_json.rs
parent62f9c247affd9a411b5891634a61e0ff5a8d32e8 (diff)
use 'assert' rather than 'assert_eq' for comparison to literal bool
Diffstat (limited to 'tests/file_json.rs')
-rw-r--r--tests/file_json.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/file_json.rs b/tests/file_json.rs
index f7cda02..5969618 100644
--- a/tests/file_json.rs
+++ b/tests/file_json.rs
@@ -47,7 +47,7 @@ fn test_file() {
assert_eq!(s.place.name, "Torre di Pisa");
assert!(s.place.longitude.approx_eq_ulps(&43.7224985, 2));
assert!(s.place.latitude.approx_eq_ulps(&10.3970522, 2));
- assert_eq!(s.place.favorite, false);
+ assert!(!s.place.favorite);
assert_eq!(s.place.reviews, 3866);
assert_eq!(s.place.rating, Some(4.5));
assert_eq!(s.place.telephone, None);