auto merge of #7258 : huonw/rust/7256, r=bstrie

This commit is contained in:
bors 2013-06-23 05:34:56 -07:00
commit 2b581c17b5

View File

@ -1142,6 +1142,9 @@ mod tests {
assert!(result::unwrap(strptime("-0800", "%z")).tm_gmtoff ==
0);
assert!(test("%", "%%"));
// Test for #7256
assert_eq!(strptime("360", "%Y-%m-%d"), Err(~"Invalid year"))
}
fn test_ctime() {