Commit f83738d3 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

add test for issue #222

parent 82444345
Pipeline #25077 passed with stages
in 6 minutes and 43 seconds
......@@ -31,6 +31,7 @@ _p_RG_spaces = [ift.RGSpace(19, distances=0.7),
ift.RGSpace((1, 2, 3, 6), distances=(0.2, 0.25, 0.34, .8))]
_p_spaces = _p_RG_spaces + [ift.HPSpace(17), ift.GLSpace(8, 13)]
_pow_spaces = [ift.PowerSpace(ift.RGSpace((17,38), harmonic=True))]
class Consistency_Tests(unittest.TestCase):
@expand(product(_h_spaces, [np.float64, np.complex128]))
......@@ -64,3 +65,8 @@ class Consistency_Tests(unittest.TestCase):
op = ift.DiagonalOperator(ift.Field.from_random("normal", sp,
dtype=dtype))
ift.extra.consistency_check(op, dtype, dtype)
@expand(product(_pow_spaces, [np.float64, np.complex128]))
def testLaplace(self, sp, dtype):
op = ift.LaplaceOperator(sp)
ift.extra.consistency_check(op, dtype, dtype)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment