@@ -772,29 +772,29 @@ fn regression_check() {
772772fn checked_add_duration ( ) {
773773 // Adding subday duration
774774 assert_eq ! (
775- Date :: MIN . checked_add( Duration :: new( 84_399 , 999_999_999 ) ) ,
775+ Date :: MIN . checked_add( Duration :: new( 86_399 , 999_999_999 ) ) ,
776776 Some ( Date :: MIN )
777777 ) ;
778778 assert_eq ! (
779- Date :: MIN . checked_add( Duration :: new( -84_399 , -999_999_999 ) ) ,
779+ Date :: MIN . checked_add( Duration :: new( -86_399 , -999_999_999 ) ) ,
780780 Some ( Date :: MIN )
781781 ) ;
782782
783783 assert_eq ! (
784- date!( 2021 - 10 - 25 ) . checked_add( Duration :: new( 84_399 , 999_999_999 ) ) ,
784+ date!( 2021 - 10 - 25 ) . checked_add( Duration :: new( 86_399 , 999_999_999 ) ) ,
785785 Some ( date!( 2021 - 10 - 25 ) )
786786 ) ;
787787 assert_eq ! (
788- date!( 2021 - 10 - 25 ) . checked_add( Duration :: new( -84_399 , -999_999_999 ) ) ,
788+ date!( 2021 - 10 - 25 ) . checked_add( Duration :: new( -86_399 , -999_999_999 ) ) ,
789789 Some ( date!( 2021 - 10 - 25 ) )
790790 ) ;
791791
792792 assert_eq ! (
793- Date :: MAX . checked_add( Duration :: new( 84_399 , 999_999_999 ) ) ,
793+ Date :: MAX . checked_add( Duration :: new( 86_399 , 999_999_999 ) ) ,
794794 Some ( Date :: MAX )
795795 ) ;
796796 assert_eq ! (
797- Date :: MAX . checked_add( Duration :: new( -84_399 , -999_999_999 ) ) ,
797+ Date :: MAX . checked_add( Duration :: new( -86_399 , -999_999_999 ) ) ,
798798 Some ( Date :: MAX )
799799 ) ;
800800
@@ -826,29 +826,29 @@ fn checked_add_duration() {
826826fn checked_sub_duration ( ) {
827827 // Subtracting subday duration
828828 assert_eq ! (
829- Date :: MIN . checked_sub( Duration :: new( 84_399 , 999_999_999 ) ) ,
829+ Date :: MIN . checked_sub( Duration :: new( 86_399 , 999_999_999 ) ) ,
830830 Some ( Date :: MIN )
831831 ) ;
832832 assert_eq ! (
833- Date :: MIN . checked_sub( Duration :: new( -84_399 , -999_999_999 ) ) ,
833+ Date :: MIN . checked_sub( Duration :: new( -86_399 , -999_999_999 ) ) ,
834834 Some ( Date :: MIN )
835835 ) ;
836836
837837 assert_eq ! (
838- date!( 2021 - 10 - 25 ) . checked_sub( Duration :: new( 84_399 , 999_999_999 ) ) ,
838+ date!( 2021 - 10 - 25 ) . checked_sub( Duration :: new( 86_399 , 999_999_999 ) ) ,
839839 Some ( date!( 2021 - 10 - 25 ) )
840840 ) ;
841841 assert_eq ! (
842- date!( 2021 - 10 - 25 ) . checked_sub( Duration :: new( -84_399 , -999_999_999 ) ) ,
842+ date!( 2021 - 10 - 25 ) . checked_sub( Duration :: new( -86_399 , -999_999_999 ) ) ,
843843 Some ( date!( 2021 - 10 - 25 ) )
844844 ) ;
845845
846846 assert_eq ! (
847- Date :: MAX . checked_sub( Duration :: new( 84_399 , 999_999_999 ) ) ,
847+ Date :: MAX . checked_sub( Duration :: new( 86_399 , 999_999_999 ) ) ,
848848 Some ( Date :: MAX )
849849 ) ;
850850 assert_eq ! (
851- Date :: MAX . checked_sub( Duration :: new( -84_399 , -999_999_999 ) ) ,
851+ Date :: MAX . checked_sub( Duration :: new( -86_399 , -999_999_999 ) ) ,
852852 Some ( Date :: MAX )
853853 ) ;
854854
0 commit comments