Skip to content

Commit

Permalink
test: add unit tests for addition module in tests/test_addition.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrig authored Apr 30, 2024
1 parent fe351c2 commit 3970584
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/test_addition.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""Unit Tests for Addition Module"""

import unittest

from pkg.addition import add_one, add_n


class TestAddition(unittest.TestCase):

def test_add_one(self):
self.assertEqual(add_one(5), 6)


def test_add_n(self):
self.assertEqual(add_n(5, 1), 6)


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

0 comments on commit 3970584

Please sign in to comment.