Skip to content

Commit f8bf7b6

Browse files
committed
swap assertions to get better visibility when unit testing fails
1 parent 99ef190 commit f8bf7b6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_precision.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ def test_snippets_rare_case_1():
209209
)
210210

211211
npt.assert_almost_equal(
212-
ref_snippets, cmp_snippets, decimal=config.STUMPY_TEST_PRECISION
212+
ref_indices, cmp_indices, decimal=config.STUMPY_TEST_PRECISION
213213
)
214214
npt.assert_almost_equal(
215-
ref_indices, cmp_indices, decimal=config.STUMPY_TEST_PRECISION
215+
ref_snippets, cmp_snippets, decimal=config.STUMPY_TEST_PRECISION
216216
)
217217
npt.assert_almost_equal(
218218
ref_profiles, cmp_profiles, decimal=config.STUMPY_TEST_PRECISION
@@ -288,10 +288,10 @@ def test_snippets_rare_case_2():
288288
)
289289

290290
npt.assert_almost_equal(
291-
ref_snippets, cmp_snippets, decimal=config.STUMPY_TEST_PRECISION
291+
ref_indices, cmp_indices, decimal=config.STUMPY_TEST_PRECISION
292292
)
293293
npt.assert_almost_equal(
294-
ref_indices, cmp_indices, decimal=config.STUMPY_TEST_PRECISION
294+
ref_snippets, cmp_snippets, decimal=config.STUMPY_TEST_PRECISION
295295
)
296296
npt.assert_almost_equal(
297297
ref_profiles, cmp_profiles, decimal=config.STUMPY_TEST_PRECISION
@@ -366,10 +366,10 @@ def test_snippets_rare_case_3():
366366
)
367367

368368
npt.assert_almost_equal(
369-
ref_snippets, cmp_snippets, decimal=config.STUMPY_TEST_PRECISION
369+
ref_indices, cmp_indices, decimal=config.STUMPY_TEST_PRECISION
370370
)
371371
npt.assert_almost_equal(
372-
ref_indices, cmp_indices, decimal=config.STUMPY_TEST_PRECISION
372+
ref_snippets, cmp_snippets, decimal=config.STUMPY_TEST_PRECISION
373373
)
374374
npt.assert_almost_equal(
375375
ref_profiles, cmp_profiles, decimal=config.STUMPY_TEST_PRECISION

0 commit comments

Comments
 (0)