Logo
Explore Help
Register Sign In
exercism/python
1
0
Fork 0
You've already forked python
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
381ec6ede9bacd4a61b2edcd90e805408cda3c09
python/exercises/clock/clock.py

16 lines
245 B
Python
Raw Normal View History

Add skeleton files for exercises (#415) closes #272
2017-03-12 15:13:28 +01:00
class Clock(object):
Add parameters to init in clock exmaple Fixes #551
2017-10-03 13:21:27 +02:00
def __init__(self, hour, minute):
Add skeleton files for exercises (#415) closes #272
2017-03-12 15:13:28 +01:00
pass
clock: Replace Clock.add() with magic method __add__() to resolve #727
2017-10-21 11:29:33 -05:00
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 22:41:42 +08:00
def __repr__(self):
pass
def __eq__(self, other):
pass
def __add__(self, minutes):
pass
def __sub__(self, minutes):
clock: Replace Clock.add() with magic method __add__() to resolve #727
2017-10-21 11:29:33 -05:00
pass
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 106ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API