Skip to content

Commit

Permalink
assert approx
Browse files Browse the repository at this point in the history
  • Loading branch information
lbluque committed Apr 26, 2024
1 parent 228f4a4 commit 4b43193
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_slab.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import random

import numpy as np
import pytest

from ocdata.core import Bulk, Slab

Expand Down Expand Up @@ -32,4 +33,4 @@ def test_slab_init_random(self):

assert slab.atoms.get_chemical_formula() == "Sn48"
assert slab.millers == (2, 1, 0)
assert slab.shift == 0.0833333333333334
assert slab.shift == pytest.approx(0.0833333333333334)

0 comments on commit 4b43193

Please sign in to comment.