Skip to content

Commit 9c49872

Browse files
committed
added tests with expected failure
1 parent f353884 commit 9c49872

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

diffpy/snmf/tests/test_subroutines.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,14 @@ def test_construct_weight_matrix(tcwm):
241241
ComponentSignal([0, .25, .5, .75, 1], 2, 2)], [[-.5, 1], [1.2, -1.3], [1.1, -1], [0, -1.5], [0, .1]], None),
242242
([ComponentSignal([0, .25, .5, .75, 1], 2, 0), ComponentSignal([0, .25, .5, .75, 1], 2, 1),
243243
ComponentSignal([0, .25, .5, .75, 1], 2, 2)], [[-.5, 1], [1.2, -1.3], [1.1, -1], [0, -1.5], [0, .1]], "align"),
244+
# ([ComponentSignal([0, .25, .5, .75, 1], 0, 0), ComponentSignal([0, .25, .5, .75, 1], 0, 1),
245+
# ComponentSignal([0, .25, .5, .75, 1], 0, 2)], [[1, 1], [1.2, 1.3], [1.3, 1.4], [1.4, 1.5], [2, 2.1]], None),
246+
# ([ComponentSignal([0, .25, .5, .75, 1], 0, 0), ComponentSignal([0, .25, .5, .75, 1], 0, 1),
247+
# ComponentSignal([0, .25, .5, .75, 1], 0, 2)], [], None),
248+
# ([ComponentSignal([0, .25, .5, .75, 1], 2, 0), ComponentSignal([0, .25, .5, .75, 1], 2, 1),
249+
# ComponentSignal([0, .25, .5, .75, 1], 2, 2)], [], 170),
244250
]
245251
@pytest.mark.parametrize('tuw', tuw)
246252
def test_update_weights(tuw):
247-
for component in tuw[0]:
248-
print(component.weights)
249253
actual = update_weights(tuw[0], tuw[1], tuw[2])
250254
assert np.shape(actual) == (len(tuw[0]), len(tuw[0][0].weights))

0 commit comments

Comments
 (0)