Move 1 / 147. From red to red in 105 seconds.
0
comment(s).
8 modification(s).
Kata Summary
========== euler54.py ==========
=
========== euler54.py ==========
If time is money you've made me a welahtier woman.
=
# Adapt the code to your code kata euler54.
|
# Project euler #54
=
import unittest
=
import unittest
=
class Euler54:
|
def win(hand1, hand2):
<
"""Return 0 if hand1 winds, 1 otherwise"""
<
return 0
=
def foo(self):
|
return "fixme"
|
class TestEuler54(unittest.TestCase):
|
|
def test_win2(self):
class TestEuler54(unittest.TestCase):
|
self.assertEqual(1, win("5H 5C 6S 7S KD", "2C 3S 8S 8D TD"))
=
def test_foo(self):
|
if __name__ == '__main__':
object_under_test = Euler54()
unittest.main()
self.assertEqual("foo", object_under_test.foo())
>
>
if __name__ == '__main__':
>
unittest.main()
>
F
======================================================================
FAIL: test_foo (__main__.TestEuler54)
----------------------------------------------------------------------
Traceback (most recent call last):
File "euler54.py", line 15, in test_foo
self.assertEqual("foo", object_under_test.foo())
AssertionError: 'foo' != 'fixme'
- foo
+ fixme
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (failures=1)
F
======================================================================
FAIL: test_win2 (__main__.TestEuler54)
----------------------------------------------------------------------
Traceback (most recent call last):
File "euler54.py", line 13, in test_win2
self.assertEqual(1, win("5H 5C 6S 7S KD", "2C 3S 8S 8D TD"))
AssertionError: 1 != 0
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (failures=1)
1
2
3
4
5
6
...
147
Next »
======================================================================
FAIL: test_foo (__main__.TestEuler54)
----------------------------------------------------------------------
Traceback (most recent call last):
File "euler54.py", line 15, in test_foo
self.assertEqual("foo", object_under_test.foo())
AssertionError: 'foo' != 'fixme'
- foo
+ fixme
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (failures=1)
======================================================================
FAIL: test_win2 (__main__.TestEuler54)
----------------------------------------------------------------------
Traceback (most recent call last):
File "euler54.py", line 13, in test_win2
self.assertEqual(1, win("5H 5C 6S 7S KD", "2C 3S 8S 8D TD"))
AssertionError: 1 != 0
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (failures=1)