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_toml.rs | |
parent | 71f4b182d1e56febda64bd620ae0e0f65de333cd (diff) |
Remove ConfigResult; close #36
Diffstat (limited to 'tests/file_toml.rs')
-rw-r--r-- | tests/file_toml.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/file_toml.rs b/tests/file_toml.rs index a46e808..f272698 100644 --- a/tests/file_toml.rs +++ b/tests/file_toml.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::Toml)); assert!(res.is_err()); - assert_eq!(res.unwrap_err().to_string(), - "invalid number at line 2 in tests/Settings-invalid.toml" - .to_string()); + assert_eq!( + res.unwrap_err().to_string(), + "invalid number at line 2 in tests/Settings-invalid.toml".to_string() + ); } |