Skip to content

Commit 91362bd

Browse files
committed
extra: Add a testcase for #7256.
1 parent 82ba030 commit 91362bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libextra/time.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,9 @@ mod tests {
11381138
assert!(result::unwrap(strptime("-0800", "%z")).tm_gmtoff ==
11391139
0);
11401140
assert!(test("%", "%%"));
1141+
1142+
// Test for #7256
1143+
assert_eq!(strptime("360", "%Y-%m-%d"), Err(~"Invalid year"))
11411144
}
11421145
11431146
fn test_ctime() {

0 commit comments

Comments
 (0)