From c2b942dada7288e42d7ba030b011551733c4c0d3 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Tue, 24 May 2016 15:30:41 +0100 Subject: [PATCH] Solved a dumb little problem. TODO: refactor :gun: --- tests/test_against_anders_and_briegel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_against_anders_and_briegel.py b/tests/test_against_anders_and_briegel.py index c0ccc29..43d99c7 100644 --- a/tests/test_against_anders_and_briegel.py +++ b/tests/test_against_anders_and_briegel.py @@ -6,6 +6,7 @@ import random import difflib import re from copy import deepcopy +from tqdm import tqdm def compare(a, b): """ TODO: Sketchy as you like. Remove this abomination """ @@ -126,7 +127,7 @@ def test_all(N=3): a = graphsim.GraphRegister(N) b = GraphState(range(N)) previous_state, previous_cz = None, None - while isequal(a, b): + for i in tqdm(range(100000), desc="Testing against Anders and Briegel"): if random.random()>0.5: j = random.randint(0, N-1) a.hadamard(j)