()
| 142 | |
| 143 | |
| 144 | def test_closest_with_equals(): |
| 145 | instance = pendulum.time(12, 34, 56) |
| 146 | t1 = pendulum.time(12, 34, 56) |
| 147 | t2 = pendulum.time(12, 34, 59) |
| 148 | closest = instance.closest(t1, t2) |
| 149 | assert t1 == closest |
| 150 | |
| 151 | |
| 152 | def test_farthest(): |