Fix code formatting and update .gitignore

This commit is contained in:
Danilo Bargen 2016-04-03 00:10:24 +02:00
commit 8e643b7987
2 changed files with 4 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
target
*.swp
*.tar.gz
tldr-master/

View file

@ -80,7 +80,8 @@ mod test {
assert_eq!(json::decode::<OsType>("\"Linux\"").unwrap(), Linux);
assert_eq!(json::decode::<OsType>("\"LINUX\"").unwrap(), Linux);
}
#[test]
#[test]
fn test_os_type_decoding_unknown() {
assert!(json::decode::<OsType>("\"lindows\"").is_err());
}