Skip to content
Snippets Groups Projects
example.py 285 B
Newer Older
  • Learn to ignore specific revisions
  • Amal Alghamdi's avatar
    Amal Alghamdi committed
    def add(a, b):
        return a + b
    
    
    def test_add():
        assert add(2, 3) == 5
        assert add('space', 'ship') == 'spaceship'
    
    
    def subtract(a, b):
        return a + b  # <--- fix this in step 8
    
    
    # uncomment the following test in step 5
    
    Amal Alghamdi's avatar
    Amal Alghamdi committed
    def test_subtract():
        assert subtract(2, 3) == -1