From 297c46d06113ec20c182e754f32f753e3e48067e Mon Sep 17 00:00:00 2001 From: Morten Hannemose <morten@hannemose.dk> Date: Thu, 21 Sep 2023 12:17:03 +0200 Subject: [PATCH] Fixed parenthesis test week 4 --- cp/tests/tests_week04.py | 2 +- cp/tests/unitgrade_data/Week04Bug.pkl | Bin 159 -> 159 bytes cp/tests/unitgrade_data/Week04Dialogue.pkl | Bin 192 -> 192 bytes cp/tests/unitgrade_data/Week04Math.pkl | Bin 156 -> 156 bytes cp/tests/unitgrade_data/Week04Palindrome.pkl | Bin 125 -> 125 bytes cp/tests/unitgrade_data/Week04Parenthesis.pkl | Bin 226 -> 226 bytes cp/tests/unitgrade_data/Week04Prefix.pkl | Bin 172 -> 172 bytes 7 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cp/tests/tests_week04.py b/cp/tests/tests_week04.py index d34692f..9868521 100644 --- a/cp/tests/tests_week04.py +++ b/cp/tests/tests_week04.py @@ -75,7 +75,7 @@ class Week04Parenthesis(UTestCase): self.assertEqual(find_innermost_part('(3+x)'), '3+x') self.assertEqual(find_innermost_part('3+x'), '3+x') self.assertEqual(find_innermost_part('3x((y+2)y+x)'), 'y+2') - self.assertEqual(find_innermost_part('3x((y+(1 - q^2)y+x)'), '1 - q^2') + self.assertEqual(find_innermost_part('3x((y+(1 - q^2)y+x))'), '1 - q^2') def test_find_index_of_equality(self): diff --git a/cp/tests/unitgrade_data/Week04Bug.pkl b/cp/tests/unitgrade_data/Week04Bug.pkl index ee50790b0915d830c81e05636fc6d9dea1d81247..238df0c25983b4e1805e8c4bc39fe7a2d14dfe36 100644 GIT binary patch delta 29 gcmbQwIG=HX36m_tL^ES1^&JzlwYcmVAfQwa0BlYM5dZ)H delta 29 icmbQwIG=HX36prkL^ES1?FAFFwYcp5IWT}gsU84;1_!hN diff --git a/cp/tests/unitgrade_data/Week04Dialogue.pkl b/cp/tests/unitgrade_data/Week04Dialogue.pkl index 365c219060ef5e18a88a1900a5ffb4ea1e51c2d8..49e5a0485898cd2b983e97ade4da89a51b201eb6 100644 GIT binary patch delta 27 fcmX@Wcz|(&C8NYdD_bTWhKZGSoZlG0pi~b4XqyIQ delta 27 gcmX@Wcz|(&C8Oj-D_bVc2NNspIDZ~s0D)3H0D9dB1^@s6 diff --git a/cp/tests/unitgrade_data/Week04Math.pkl b/cp/tests/unitgrade_data/Week04Math.pkl index b958b1065ea174dc48d76074ea59fb05334de6e1..48b5ba906384bb1028521cdc1579a450439fcf07 100644 GIT binary patch delta 27 gcmbQkIEQh9DU;%ciRNaEEEDroIlntFfIz7p0Br^a-2eap delta 27 gcmbQkIEQh9DU)cyL~}F79TW3ZIsY7B0D)3H0Cigj$^ZZW diff --git a/cp/tests/unitgrade_data/Week04Palindrome.pkl b/cp/tests/unitgrade_data/Week04Palindrome.pkl index eeeddf4ffbc53547dbe7945d16fb46923d0fa7f4..1288859ac560a069792170b3d28f1665ddb9a360 100644 GIT binary patch delta 20 Zcmb=eonXzR+A-1AobzP^0|=Dr0RTlF1&;s# delta 20 Ycmb=eonXx*sW8#jobx^d7?kP(06Jg<kpKVy diff --git a/cp/tests/unitgrade_data/Week04Parenthesis.pkl b/cp/tests/unitgrade_data/Week04Parenthesis.pkl index a9d41832452b8944b23bcca61f0b406aacdc762d..ceb83078c125759fa23a4250ac4420f838977ef6 100644 GIT binary patch delta 34 ocmaFF_=s_W4U^o0iFQUz&Tl3b=`ekCn7F`_^MeBe2$bpp0NW}HEdT%j delta 34 ncmaFF_=s_W4U<&DL^~rUW0#3VI!vD#CN8k#{Nca=0;PHY!n6td diff --git a/cp/tests/unitgrade_data/Week04Prefix.pkl b/cp/tests/unitgrade_data/Week04Prefix.pkl index 3c8550a026eda150dc9006b2d0121f1435d090a5..42e8a488ea68cf71134d83921e28983356fb02a1 100644 GIT binary patch delta 28 hcmZ3(xQ20pIg>=dL`!of1&4`6hMeCV7(k#@4*+sO2L%8C delta 28 gcmZ3(xQ20pIg^yZL`!of!w(aS3^_kAfI+Dq0C-dfVgLXD -- GitLab