Files
python/exercises/clock/clock.py
Marc Chan 0704fa35ad clock: update tests to v2.2.1 (#1324)
* 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
2018-02-21 08:41:42 -06:00

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