Skip to content

Commit

Permalink
Added some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiiFu committed Jun 30, 2016
1 parent f858e02 commit 76f926f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/testCalcul.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import unittest
from CI-test.calcul.addition import *
from calcul.addition import *

class TestCalcul(unittest.TestCase) :

def test_calcul(self) :
def test_calcul1(self) :
resultat = addition(5, 2)
self.assertEqual(resultat, 7)


def test_calcul2(self) :
resultat = addition(17, 18)
self.assertEqual(resultat, 35)

def test_calcul3(self) :
resultat = addition(2555, 445)
self.assertEqual(resultat, 3000)

if __name__ == '__main__':
unittest.main()

0 comments on commit 76f926f

Please sign in to comment.