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
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# learn-git
Hello Class!

## Smaller head

```js
function foo() {}
```

<details>
<summary> `package.json` </summary>

```json

{ "huge": "bunch of stuff" }

```

</details>

<pre>
<p align=center>
<a href="http://example.com"> Click me </a>
</p>
</pre>
1 change: 1 addition & 0 deletions src/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ def add(a, b, third_operand = 0):
```py
add(2, 3) # 5
add(2, 3, 4) # 9
hello
```
"""
return a + b + third_operand
Expand Down
5 changes: 5 additions & 0 deletions src/calc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ 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 one from four')

def test_sub_3arg_zeros(self):
self.assertEqual(sub(0, 0, 0), 0, 'zero minus zero minus zero is zero')

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