File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 619619 @test ! isequal (Day (4 ), 4 u " hr" )
620620 @test ! isequal (4 u " cm" , Day (4 ))
621621
622+ @test isequal (CompoundPeriod (), 0 s)
622623 @test isequal (CompoundPeriod (Day (365 ), Hour (6 )), 1 u " yr" )
623624 @test isequal (1 u " yr" , CompoundPeriod (Day (365 ), Hour (6 )))
624625 @test ! isequal (CompoundPeriod (), - 0.0 u " s" ) # !isequal(0.0, -0.0)
629630 @test ! isequal (CompoundPeriod (Year (1 )), 1 u " yr" )
630631 @test ! isequal (CompoundPeriod (Month (12 )), 1 u " yr" )
631632
633+ # hash
634+ @test_broken hash (Second (2 )) === hash (2.0 s)
635+ @test_broken hash (72 hr) === hash (Day (3 ))
636+ @test_broken hash (CompoundPeriod ()) === hash (0 s)
637+ @test_broken hash (CompoundPeriod (Hour (6 ))) === hash (6 hr)
638+
632639 # <
633640 @test Second (1 ) < 1001 u " ms"
634641 @test 3 u " minute" < Minute (4 )
You can’t perform that action at this time.
0 commit comments