Last active
February 20, 2023 13:39
-
-
Save KabakiAntony/7e8f7dda40b31f1f02cb88cfa09bb901 to your computer and use it in GitHub Desktop.
unit test 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
| import unittest | |
| def sum(a, b): | |
| return a + b | |
| class TestSum(unittest.TestCase): | |
| def test_sum_of_positive_numbers(self): | |
| self.assertEqual(sum(2,2), 5) | |
| if __name__ == '__main__': | |
| unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment