update to test as it seems non deterministic

Commit 7493751bfe19 · Nicolas Saunier · 2024-06-27 15:31 -0400

Changeset
7493751bfe1964aac466cd403bcc87979ac114a3

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/trafficintelligence/tests/utils.txt b/trafficintelligence/tests/utils.txt
--- a/trafficintelligence/tests/utils.txt
+++ b/trafficintelligence/tests/utils.txt
@@ -51,8 +51,8 @@
 [3, 3, 3, 4, 4, 4, 4]
 >>> filterCategoricalMovingWindow([3]*6 + [4], 2)
 [3, 3, 3, 3, 3, 3, 3]
->>> filterCategoricalMovingWindow(['a']*3 + ['c'] + ['b']*3, 2)
-['a', 'a', 'a', 'b', 'b', 'b', 'b']
+>>> 'c' in filterCategoricalMovingWindow(['a']*3 + ['c'] + ['b']*3, 2)
+False
 >>> filterCategoricalMovingWindow([3], 2)
 [3]