summaryrefslogtreecommitdiffstats
path: root/tests/file_yaml.rs
diff options
context:
space:
mode:
authorDaniel Eades <danieleades@hotmail.com>2022-01-29 13:53:57 +0100
committerDaniel Eades <danieleades@hotmail.com>2022-01-29 14:01:49 +0100
commit637fc8cb390e4c21b7b02d653787f981ca91dc56 (patch)
tree96f7fdefadd6922dcbc03ab0f7fd41497116a1f0 /tests/file_yaml.rs
parent6ecfeec624ae9e145b66431188bae31c17bcd154 (diff)
use separators in long literals
Diffstat (limited to 'tests/file_yaml.rs')
-rw-r--r--tests/file_yaml.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/file_yaml.rs b/tests/file_yaml.rs
index 927c108..233b92c 100644
--- a/tests/file_yaml.rs
+++ b/tests/file_yaml.rs
@@ -45,8 +45,8 @@ fn test_file() {
assert!(s.debug.approx_eq_ulps(&1.0, 2));
assert_eq!(s.production, Some("false".to_string()));
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!(s.place.longitude.approx_eq_ulps(&43.722_498_5, 2));
+ assert!(s.place.latitude.approx_eq_ulps(&10.397_052_2, 2));
assert!(!s.place.favorite);
assert_eq!(s.place.reviews, 3866);
assert_eq!(s.place.rating, Some(4.5));