You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation: I've seem multiple solutions where Clock.__add__ either (1) returns a str or (2) modifies and returns self. Ideally a = b + c should not mutate b or c and Clock + int should return a Clock.
Proposal: Add a test or two where,
now = Clock(0, 0)
future = now + 5
test.assertNotEqual(now, future)
test.assertEqual(future, Clock(0, 5))