Skip to content

Commit

Permalink
updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgostick committed Jan 25, 2024
1 parent f0c9093 commit 13add73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/test_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,12 @@ def test_sierpinski_foam(self):
im2D = ps.generators.sierpinski_foam(4, 2, 2)
np.testing.assert_allclose(im2D.sum()/im2D.size, 0.7901234567901234)

def test_sierpinski_foam_2(self):
im2D = ps.generators.sierpinski_foam_2(shape=[100, 100], n=3)
def test_sierpinski_foam2(self):
im2D = ps.generators.sierpinski_foam2(shape=[100, 100], n=3)
assert np.all(im2D.shape == (100, 100))
im3D = ps.generators.sierpinski_foam_2(shape=[100, 100, 100], n=3)
im3D = ps.generators.sierpinski_foam2(shape=[100, 100, 100], n=3)
assert np.all(im3D.shape == (100, 100, 100))
im2Dn5 = ps.generators.sierpinski_foam_2(shape=[100, 100], n=5)
im2Dn5 = ps.generators.sierpinski_foam2(shape=[100, 100], n=5)
assert im2D.sum() > im2Dn5.sum()

def test_border_thickness_1(self):
Expand Down

0 comments on commit 13add73

Please sign in to comment.