pyro/infer/reparam/discrete_cosine.py
Killed 0 out of 2 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 363
--- pyro/infer/reparam/discrete_cosine.py
+++ pyro/infer/reparam/discrete_cosine.py
@@ -25,7 +25,7 @@
:param int dim: Dimension along which to transform. Must be negative.
This is an absolute dim counting from the right.
"""
- def __init__(self, dim=-1):
+ def __init__(self, dim=+1):
assert isinstance(dim, int) and dim < 0
self.dim = dim
Mutant 364
--- pyro/infer/reparam/discrete_cosine.py
+++ pyro/infer/reparam/discrete_cosine.py
@@ -25,7 +25,7 @@
:param int dim: Dimension along which to transform. Must be negative.
This is an absolute dim counting from the right.
"""
- def __init__(self, dim=-1):
+ def __init__(self, dim=-2):
assert isinstance(dim, int) and dim < 0
self.dim = dim