Help!
Nobody can add two numbers.
We need an application wich accepts 2 numbers and adds them together.
Last active
August 29, 2015 14:20
-
-
Save tomodutch/178f59aa32f1c707482d to your computer and use it in GitHub Desktop.
farla.io-exercism-example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add(x, y): | |
return x + y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
from calc import add | |
class TestAdd(unittest.TestCase): | |
@unittest.skip('') | |
def test_add_1_1(self): | |
self.assertEquals(2, add(1, 1)) | |
@unittest.skip('') | |
def test_add_2_4(self): | |
self.assertEquals(6, add(2, 4)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment