Coverage for gpaw/test/test_Gauss.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.7.1, created at 2025-07-08 00:17 +0000

1import pytest 

2from gpaw.gauss import test_derivatives as check 

3 

4 

5def test_Gauss(): 

6 for i in range(3): 

7 i1, i2 = check((1.0, -3.4, 1.2), 

8 (0, 0, 0), (1, 0, 0), 1.4, 3.0, i) 

9 assert i1 == pytest.approx(i2, abs=4e-10) 

10 i1, i2 = check((1.0, -3.4, 1.2), 

11 (0, 1, 0), (0, 0, 1), 1.4, 3.0, i) 

12 assert i1 == pytest.approx(i2, abs=2e-10) 

13 i1, i2 = check((1.0, -3.4, 1.2), 

14 (0, 1, 0), (1, 0, 1), 1.4, 3.0, i) 

15 assert i1 == pytest.approx(i2, abs=4e-11) 

16 i1, i2 = check((1.0, -3.4, 1.2), 

17 (0, 2, 0), (1, 0, 1), 1.4, 3.0, i) 

18 assert i1 == pytest.approx(i2, abs=6e-10)