Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit 7fd02fe

Browse files
committed
Add harvir.py and harvir_test.py
1 parent 93f956f commit 7fd02fe

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
from .ned import fizzbuzz as fizzbuzz
2+
from .harvir import silly_addition as silly_addition
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def silly_addition(a, b):
2+
# Adds two numbers and then adds 42 to the result.
3+
return a + b + 42
4+
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from selfie_lib import silly_addition
2+
3+
def test_silly_addition():
4+
assert silly_addition(1, 2) == 45, "Should be 45"
5+
assert silly_addition(-42, 0) == 0, "Should be 0"
6+
assert silly_addition(10, 5) == 57, "Should be 57"

0 commit comments

Comments
 (0)