From 5b3231951f0799e9d6f9f6664de880ad20704229 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 13 May 2024 23:44:24 +0800 Subject: [PATCH] fix tests --- scripts/run_tests.py | 7 +++---- tests/99_bugs.py | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/run_tests.py b/scripts/run_tests.py index da9649f9..e2b8cc44 100644 --- a/scripts/run_tests.py +++ b/scripts/run_tests.py @@ -64,10 +64,9 @@ class A: def get(self): return self.x - - print('ans_1:', add(1, 2)) - print('ans_2:', A('abc').get()) - exit() +print('ans_1:', add(1, 2)) +print('ans_2:', A('abc').get()) +exit() ''', capture_output=True, check=True) res.check_returncode() assert 'ans_1: 3' in res.stdout, res.stdout diff --git a/tests/99_bugs.py b/tests/99_bugs.py index 1140442c..912f8090 100644 --- a/tests/99_bugs.py +++ b/tests/99_bugs.py @@ -101,3 +101,6 @@ assert ret == {chr(i+97): i+1 for i in range(26)} assert g(**ret) == ret assert g(**g(**ret)) == ret + +# other known issues: +# 1. d.extend(d) if d is deque