Skip to content

Commit

Permalink
Fixing paths?
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottMacLachlan committed Oct 1, 2023
1 parent 5f80990 commit 43f92d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_mymath.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
import math as m
from mymath import sinc2d
from code.mymath import sinc2d

@pytest.mark.parametrize("x,y,expected",
[(0,0,1),
Expand All @@ -10,4 +10,4 @@
])
def test_sinc2d(x,y,expected):
observed = sinc2d(x,y)
assert expected == observed
assert expected == observed
4 changes: 2 additions & 2 deletions tests/test_mymath2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from mymath import *
from code.mymath import *

@pytest.mark.parametrize("x,x_plus_one",[(0,1),(1,2),(1.5,2.5),(2.25,3.25)])
def test_addone(x,x_plus_one):
Expand All @@ -15,4 +15,4 @@ def test_addone_then_double(x,x_plusone_doubled):

@pytest.mark.parametrize("x,y,val",[(1,1,0.7080734182735712),(5,0.25,-0.18979332974154567)])
def test_sinc2d_regression(x,y,val):
assert abs(sinc2d(x,y)-val) < 1e-10
assert abs(sinc2d(x,y)-val) < 1e-10

0 comments on commit 43f92d9

Please sign in to comment.