MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_closest_with_equals

Function test_closest_with_equals

tests/time/test_comparison.py:144–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142
143
144def 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
152def test_farthest():

Callers

nothing calls this directly

Calls 2

timeMethod · 0.80
closestMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…