diff options
author | Ryan Leckey <leckey.ryan@gmail.com> | 2017-07-30 13:20:36 -0700 |
---|---|---|
committer | Ryan Leckey <leckey.ryan@gmail.com> | 2017-07-30 13:20:36 -0700 |
commit | 14224be23dc2f253a240b85214927d97e1160669 (patch) | |
tree | 6f5b02b26aef5cf37bb14f32b9048165b67109ce /tests/file_json.rs | |
parent | 71f4b182d1e56febda64bd620ae0e0f65de333cd (diff) |
Remove ConfigResult; close #36
Diffstat (limited to 'tests/file_json.rs')
-rw-r--r-- | tests/file_json.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/file_json.rs b/tests/file_json.rs index 983be86..1d35cae 100644 --- a/tests/file_json.rs +++ b/tests/file_json.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,8 @@ fn test_error_parse() { let res = c.merge(File::new("tests/Settings-invalid", FileFormat::Json)); assert!(res.is_err()); - assert_eq!(res.unwrap_err().to_string(), - "expected `:` at line 4 column 1 in tests/Settings-invalid.json" - .to_string()); + assert_eq!( + res.unwrap_err().to_string(), + "expected `:` at line 4 column 1 in tests/Settings-invalid.json".to_string() + ); } |