Lines Matching refs:hmsm

1610         let hmsm = |h, m, s, mi| NaiveTime::from_hms_milli(h, m, s, mi);  in test_time_add()  localVariable
1612 check!(hmsm(3, 5, 7, 900), Duration::zero(), hmsm(3, 5, 7, 900)); in test_time_add()
1613 check!(hmsm(3, 5, 7, 900), Duration::milliseconds(100), hmsm(3, 5, 8, 0)); in test_time_add()
1614 check!(hmsm(3, 5, 7, 1_300), Duration::milliseconds(-1800), hmsm(3, 5, 6, 500)); in test_time_add()
1615 check!(hmsm(3, 5, 7, 1_300), Duration::milliseconds(-800), hmsm(3, 5, 7, 500)); in test_time_add()
1616 check!(hmsm(3, 5, 7, 1_300), Duration::milliseconds(-100), hmsm(3, 5, 7, 1_200)); in test_time_add()
1617 check!(hmsm(3, 5, 7, 1_300), Duration::milliseconds(100), hmsm(3, 5, 7, 1_400)); in test_time_add()
1618 check!(hmsm(3, 5, 7, 1_300), Duration::milliseconds(800), hmsm(3, 5, 8, 100)); in test_time_add()
1619 check!(hmsm(3, 5, 7, 1_300), Duration::milliseconds(1800), hmsm(3, 5, 9, 100)); in test_time_add()
1620 check!(hmsm(3, 5, 7, 900), Duration::seconds(86399), hmsm(3, 5, 6, 900)); // overwrap in test_time_add()
1621 check!(hmsm(3, 5, 7, 900), Duration::seconds(-86399), hmsm(3, 5, 8, 900)); in test_time_add()
1622 check!(hmsm(3, 5, 7, 900), Duration::days(12345), hmsm(3, 5, 7, 900)); in test_time_add()
1623 check!(hmsm(3, 5, 7, 1_300), Duration::days(1), hmsm(3, 5, 7, 300)); in test_time_add()
1624 check!(hmsm(3, 5, 7, 1_300), Duration::days(-1), hmsm(3, 5, 8, 300)); in test_time_add()
1627 check!(hmsm(0, 0, 0, 0), Duration::milliseconds(-990), hmsm(23, 59, 59, 10)); in test_time_add()
1628 check!(hmsm(0, 0, 0, 0), Duration::milliseconds(-9990), hmsm(23, 59, 50, 10)); in test_time_add()
1633 let hmsm = NaiveTime::from_hms_milli; in test_time_overflowing_add() localVariable
1636 hmsm(3, 4, 5, 678).overflowing_add_signed(Duration::hours(11)), in test_time_overflowing_add()
1637 (hmsm(14, 4, 5, 678), 0) in test_time_overflowing_add()
1640 hmsm(3, 4, 5, 678).overflowing_add_signed(Duration::hours(23)), in test_time_overflowing_add()
1641 (hmsm(2, 4, 5, 678), 86_400) in test_time_overflowing_add()
1644 hmsm(3, 4, 5, 678).overflowing_add_signed(Duration::hours(-7)), in test_time_overflowing_add()
1645 (hmsm(20, 4, 5, 678), -86_400) in test_time_overflowing_add()
1650 hmsm(3, 4, 5, 1_678).overflowing_add_signed(Duration::days(1)), in test_time_overflowing_add()
1651 (hmsm(3, 4, 5, 678), 86_400) in test_time_overflowing_add()
1654 hmsm(3, 4, 5, 1_678).overflowing_add_signed(Duration::days(-1)), in test_time_overflowing_add()
1655 (hmsm(3, 4, 6, 678), -86_400) in test_time_overflowing_add()
1689 let hmsm = |h, m, s, mi| NaiveTime::from_hms_milli(h, m, s, mi); in test_time_sub() localVariable
1691 check!(hmsm(3, 5, 7, 900), hmsm(3, 5, 7, 900), Duration::zero()); in test_time_sub()
1692 check!(hmsm(3, 5, 7, 900), hmsm(3, 5, 7, 600), Duration::milliseconds(300)); in test_time_sub()
1693 check!(hmsm(3, 5, 7, 200), hmsm(2, 4, 6, 200), Duration::seconds(3600 + 60 + 1)); in test_time_sub()
1695 hmsm(3, 5, 7, 200), in test_time_sub()
1696 hmsm(2, 4, 6, 300), in test_time_sub()
1702 check!(hmsm(3, 5, 7, 200), hmsm(3, 5, 6, 1_800), Duration::milliseconds(400)); in test_time_sub()
1703 check!(hmsm(3, 5, 7, 1_200), hmsm(3, 5, 6, 1_800), Duration::milliseconds(1400)); in test_time_sub()
1704 check!(hmsm(3, 5, 7, 1_200), hmsm(3, 5, 6, 800), Duration::milliseconds(1400)); in test_time_sub()
1708 assert_eq!(hmsm(3, 5, 6, 800) + Duration::milliseconds(400), hmsm(3, 5, 7, 200)); in test_time_sub()
1709 assert_eq!(hmsm(3, 5, 6, 1_800) + Duration::milliseconds(400), hmsm(3, 5, 7, 200)); in test_time_sub()