Skip to content

Instantly share code, notes, and snippets.

@tomodutch
Last active August 29, 2015 14:20
Show Gist options
  • Save tomodutch/178f59aa32f1c707482d to your computer and use it in GitHub Desktop.
Save tomodutch/178f59aa32f1c707482d to your computer and use it in GitHub Desktop.
farla.io-exercism-example

Help!
Nobody can add two numbers.
We need an application wich accepts 2 numbers and adds them together.

def add(x, y):
return x + y
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