Skip to content

Commit

Permalink
fix rounding error bug in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Moodie committed Jul 10, 2024
1 parent 82ecb55 commit fd66f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_strat.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_returns_volume_and_elevations_given_dz(self):
self.elev, self.time, dz=0.05)
assert s.ndim == 3
assert s.shape == e.shape
assert e[1, 0, 0] - e[0, 0, 0] == pytest.approx(0.05)
assert e[1, 0, 0] - e[0, 0, 0] == pytest.approx(0.05, rel=1e-3)

def test_returns_volume_and_elevations_given_z(self):
z = np.linspace(-20, 500, 200)
Expand Down

0 comments on commit fd66f53

Please sign in to comment.