mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 01:13:11 +00:00
auto merge of #7258 : huonw/rust/7256, r=bstrie
This commit is contained in:
commit
2b581c17b5
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user