@@ -181,7 +181,7 @@ fn test_date_from_yo() {
181
181
assert_eq ! ( from_yo( 2012 , 300 ) , Some ( ymd( 2012 , 10 , 26 ) ) ) ;
182
182
assert_eq ! ( from_yo( 2012 , 366 ) , Some ( ymd( 2012 , 12 , 31 ) ) ) ;
183
183
assert_eq ! ( from_yo( 2012 , 367 ) , None ) ;
184
- assert_eq ! ( from_yo( 2012 , 1 << 28 | 60 ) , None ) ;
184
+ assert_eq ! ( from_yo( 2012 , ( 1 << 28 ) | 60 ) , None ) ;
185
185
186
186
assert_eq ! ( from_yo( 2014 , 0 ) , None ) ;
187
187
assert_eq ! ( from_yo( 2014 , 1 ) , Some ( ymd( 2014 , 1 , 1 ) ) ) ;
@@ -406,7 +406,7 @@ fn test_date_with_ordinal() {
406
406
assert_eq ! ( d. with_ordinal( 61 ) , Some ( NaiveDate :: from_ymd_opt( 2000 , 3 , 1 ) . unwrap( ) ) ) ;
407
407
assert_eq ! ( d. with_ordinal( 366 ) , Some ( NaiveDate :: from_ymd_opt( 2000 , 12 , 31 ) . unwrap( ) ) ) ;
408
408
assert_eq ! ( d. with_ordinal( 367 ) , None ) ;
409
- assert_eq ! ( d. with_ordinal( 1 << 28 | 60 ) , None ) ;
409
+ assert_eq ! ( d. with_ordinal( ( 1 << 28 ) | 60 ) , None ) ;
410
410
let d = NaiveDate :: from_ymd_opt ( 1999 , 5 , 5 ) . unwrap ( ) ;
411
411
assert_eq ! ( d. with_ordinal( 366 ) , None ) ;
412
412
assert_eq ! ( d. with_ordinal( u32 :: MAX ) , None ) ;
0 commit comments