* clock: update tests to v2.2.1 * Test 'subtract' instead of 'add negative' * clock: add necessary methods to clock in stub * clock: improve example to pass tests v2.2.1 * clock: fix mistaken test cases Fix following three tests: * subtract to previous hour * subtract more than an hour * subtract across midnight
16 lines
245 B
Python
16 lines
245 B
Python
class Clock(object):
|
|
def __init__(self, hour, minute):
|
|
pass
|
|
|
|
def __repr__(self):
|
|
pass
|
|
|
|
def __eq__(self, other):
|
|
pass
|
|
|
|
def __add__(self, minutes):
|
|
pass
|
|
|
|
def __sub__(self, minutes):
|
|
pass
|