Skip to content

Commit

Permalink
Adding test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
astronomerritt committed Jan 29, 2024
1 parent 92f67fe commit d52fe52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/adler/example_code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_function(x):
return x * x
6 changes: 6 additions & 0 deletions tests/adler/test_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def test_test_function():
from adler.example_code import test_function

test_value = test_function(2)

assert test_value == 4

0 comments on commit d52fe52

Please sign in to comment.