From 14224be23dc2f253a240b85214927d97e1160669 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Sun, 30 Jul 2017 13:20:36 -0700 Subject: Remove ConfigResult; close #36 --- tests/file_yaml.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'tests/file_yaml.rs') diff --git a/tests/file_yaml.rs b/tests/file_yaml.rs index 4ca5557..529a8e4 100644 --- a/tests/file_yaml.rs +++ b/tests/file_yaml.rs @@ -56,7 +56,10 @@ fn test_file() { assert_eq!(s.place.telephone, None); assert_eq!(s.elements.len(), 10); assert_eq!(s.elements[3], "4".to_string()); - assert_eq!(s.place.creator["name"].clone().into_str().unwrap(), "John Smith".to_string()); + assert_eq!( + s.place.creator["name"].clone().into_str().unwrap(), + "John Smith".to_string() + ); } #[test] @@ -65,7 +68,10 @@ fn test_error_parse() { let res = c.merge(File::new("tests/Settings-invalid", FileFormat::Yaml)); assert!(res.is_err()); - assert_eq!(res.unwrap_err().to_string(), - "while parsing a block mapping, did not find expected key at line 2 column 1 in tests/Settings-invalid.yaml" - .to_string()); + assert_eq!( + res.unwrap_err().to_string(), + "while parsing a block mapping, did not find expected key at \ + line 2 column 1 in tests/Settings-invalid.yaml" + .to_string() + ); } -- cgit v1.2.3