docs(headers): Update documentation of all remaining headers that use macros

This commit is contained in:
Pyfisch
2015-04-28 20:31:30 +02:00
parent 5a8cd31025
commit 14f46035b7
17 changed files with 98 additions and 85 deletions

View File

@@ -118,8 +118,10 @@ macro_rules! test_header {
// Test parsing
assert_eq!(val, $typed);
// Test formatting
let res: &str = str::from_utf8($raw[0]).unwrap();
assert_eq!(format!("{}", $typed.unwrap()), res);
if $typed != None {
let res: &str = str::from_utf8($raw[0]).unwrap();
assert_eq!(format!("{}", $typed.unwrap()), res);
}
}
}
}