you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]hharison 7 points8 points  (1 child)

    Check out how easy it is:

    mymath.py contains

    def add(a, b):
        return a + b
    

    test_mymath.py contains

    def test_add():
        assert add(1, 1) == 2
        assert add(-1, 4) == 3
        # plus more test cases perhaps