Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# learn-git
Hello Class!

## Slam

<details>
<summary>
<code>package.json</code>
test
</summary>
</details>
2 changes: 1 addition & 1 deletion src/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def add(a, b, third_operand = 0):
"""
return a + b + third_operand

def sub(a, b):
def sub(a, b, third_arg =0):
"""
Subtract some numbers

Expand Down
3 changes: 3 additions & 0 deletions src/calc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def test_sub_2arg(self):
# Make sure 4 - 3 = 1
self.assertEqual(sub(4, 3), 1, 'subtracting three from four')

def test_sub_3arg(self):
self.assertEqual(sub(4, 3, 1), 0, 'subtracting three from four')


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