From 2b8d0a8a9cb317fb16bd17c603893324ba66f3b4 Mon Sep 17 00:00:00 2001 From: Muhamed <Muhamedalici@hotmail.de> Date: Fri, 4 Apr 2025 11:06:34 +0200 Subject: [PATCH] Lasse --- muhamed_directory/String calculator | 4 ++-- .../Lasse/__pycache__/interfaces.cpython-311.pyc | Bin 0 -> 757 bytes .../__pycache__/stringcalculator.cpython-311.pyc | Bin 0 -> 2504 bytes .../other/Lasse/stringcalculator.py | 2 +- muhamed_directory/other/report.md | 3 ++- 5 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 muhamed_directory/other/Lasse/__pycache__/interfaces.cpython-311.pyc create mode 100644 muhamed_directory/other/Lasse/__pycache__/stringcalculator.cpython-311.pyc diff --git a/muhamed_directory/String calculator b/muhamed_directory/String calculator index 358785b..0a39f92 100644 --- a/muhamed_directory/String calculator +++ b/muhamed_directory/String calculator @@ -9,7 +9,7 @@ import unittest import re from abc import ABC, abstractmethod -from other.Wasili.TDD_StringCalculator import StringCalculator as Wasili +from other.Lasse.stringcalculator import StringCalculator as Lasse class CalculatorInterface(ABC): @abstractmethod @@ -64,7 +64,7 @@ class StringCalculator(CalculatorInterface): class TestStingCalculator(unittest.TestCase): def setUp(self): - self.calculator = Wasili() + self.calculator = Lasse() def test_empty_string(self): self.assertEqual(self.calculator.add(""), 0) #leerer string + 0 def test_single_number(self): diff --git a/muhamed_directory/other/Lasse/__pycache__/interfaces.cpython-311.pyc b/muhamed_directory/other/Lasse/__pycache__/interfaces.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2babbc9b47bd1667d8db71dc3d9ae88457eb7d8d GIT binary patch literal 757 zcmZuuziSjh6n?X_dv}D}fM`nLz{V@QB6cF8Nk9ZSkzlhdE^{;Qaz}Re;>@lPs}xsQ z+9jn`MDovAhN%QA!D7Q%rSi>gT#;mU=X<~Az4yJDFJZU_wC>;iwfBkS4`=*c!IiSw zB;^<sD3(ITB9?iP$H0T<pu8n0j_i~JoY8Jp#Ff7b!{Dbgho0rnwzloMn3zHfS!7tu z7D`^7twq~uMCLIdL`*^CAy*82<zX=O6<_+N6g_M6qE6Gr-g>cH=y|@kEmB#gqF89# z&C6_p+Src9qSU$c+B5)0y5qX)5V*OBD;s}xOnrmtRCmd5T*hE<IhBv%H-<{ZSveC~ z{3^#CJ%5k!4x0U9aS$t%`=|$-F-=D#9>|tOlYuHxbB&T{9mb1dhB|&JjKO%G7pSK~ zq8S|=S}v6OuyJjY5xIRw$8kD>@4fy<e?=;chh5uCl3Zk%Bz7%HvV|&Br}vZOT`AHg zqFu7(#LaSQs6#Tfdvd+*pzpw4Lk;dy%u|A+_B#)5R~`$(lZO?M_}qwEui=72=g#tN zedeFHDemfyhdzxqk=oU+$u#Z$r*PSO+|YlbH|U&uAoH4_;*7C#xcBX*zw$W?E4U6P N{K9#E-w>*a{Q=ZCw9fzl literal 0 HcmV?d00001 diff --git a/muhamed_directory/other/Lasse/__pycache__/stringcalculator.cpython-311.pyc b/muhamed_directory/other/Lasse/__pycache__/stringcalculator.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..87fcc033a3be65d67f8fc3ae843b638e5309b836 GIT binary patch literal 2504 zcma)8O-vg{6rS0&jej5}CNW9DWCLl7(*OyC&=L}<GHD7yuG%PVafvL)Gk}$~O=s8n zAx1?}DsiY(nnOXVs-h|(q&dXu2~|B*<<jFiS}E2_NJv$sa;htOKwR24Yh!FerHp6a zzL|ONoA=(lH{M4zHBJQWv+w>IV^)NI=Y#DAW3z3Xf!7=&h+rATaR_713$hRr1auJ* z@g5=;iWfzMp1@ORA(04|k>9$`hkk7AAGoZtSYj*?k)tU&q9$1|S`;;3mf~Qe379!V zQ3w+h5(uUML@lEh*v1mF5(@`4YIlPfRf$ym8fA)MV^mGCL{un4w*${D+xQx0=TI6e z0DKwV3uQt(ED;tl_ySL%u`h_2#y2o?t0n&s_*^M<7Xx1TuG{Jmp-RaqA&rSOEqpE< zF3C)ZX>p-6DrbnTQkzL2S!TzMEUDTh=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R_sqpL&*8a_`yC6%mc*>*gzh;pQ<b-gju2jLIPy?@7+9)*>ifZ$QL_HCy8moe z>eHpZY{NOd;oQv7%+Thl`!Ekf2$$1UPow7hIO`eKJ;Pe{a9-pBo12??8*1#wPy<VS zK(Y-19V)_pDCcV6+C$jX8`R!>SMv=*&w4KDo=aNwrL{t`r6K9E^#Q#;FjM`9+cVpj zbxXQi((IB_4F~h<x$Zz0TIqVFzeWuDZH7G@PDJ7~95$Tca6Cy;GUuzq;ZIW$xws<2 zy}%?;W`0i0I^h{yC=mX=!argVe-!@FGF|%Rg(mCK`K~;I*FxcC@_P}pC`=%~#qgTf zOuKo_v_qm(HVWylF#ZQ@2#lI?yDZtV_Z1vC&rX6EuX5!I5Qr?sIdod9>^bC^Hh+2B W5qva{UL;z5>)(9(pFP%0YyShrKXG3G literal 0 HcmV?d00001 diff --git a/muhamed_directory/other/Lasse/stringcalculator.py b/muhamed_directory/other/Lasse/stringcalculator.py index fc7e89a..c3ee46b 100644 --- a/muhamed_directory/other/Lasse/stringcalculator.py +++ b/muhamed_directory/other/Lasse/stringcalculator.py @@ -1,4 +1,4 @@ -from src.interfaces import IStringCalculator +from other.Lasse.interfaces import IStringCalculator import re diff --git a/muhamed_directory/other/report.md b/muhamed_directory/other/report.md index a3eec80..1c96c1d 100644 --- a/muhamed_directory/other/report.md +++ b/muhamed_directory/other/report.md @@ -4,4 +4,5 @@ | Daniel | yes | test_add_numbers_greater_1000_and_minus (Interface Break: ValueError wurde nicht ausgelöst, obwohl eine negative Zahl vorhanden war), test_add_numbers_with_custom_delimiter (Interface Break: ValueError wurde nicht ausgelöst, obwohl eine negative Zahl im benutzerdefinierten Trennzeichen-Szenario vorhanden war), test_multiple_negative_numbers_exception (Interface Break: ValueError wurde nicht ausgelöst, obwohl mehrere negative Zahlen vorhanden waren), test_negative_number_exception (Interface Break: ValueError wurde nicht ausgelöst, obwohl eine negative Zahl vorhanden war) | | Hatice | 2 | test_add_numbers_greater_than_1000_and_minus (Interface Break: Erwartete Fehlermeldung für negative Zahl in Kombination mit Zahl > 1000 war anders: "invalid literal for int() with base 10: '-3,4'" vs. erwartet 'negatives not allowed: -3'), test_multiple_negative_numbers_exception (Geringfügige Abweichung in der Fehlermeldung: 'Negatives not allowed: -1, -2' vs. erwartet 'negatives not allowed: -1,-2'), test_negative_number_exception (Geringfügige Abweichung in der Fehlermeldung: 'Negatives not allowed: -1' vs. erwartet 'negatives not allowed: -1'), test_add_numbers_with_custom_delimiter (Interface Break: ValueError: invalid literal for int() mit Eingabe '//;\n1,2,3'), test_custom_del (Interface Break: ValueError: invalid literal for int() mit Eingabe '//[+++]\n1+++2+++3'), test_custom_del2 (Interface Break: ValueError: invalid literal for int() mit Eingabe '//[aa]\n1aa2aa3'), test_custom_delimiter (Interface Break: ValueError: invalid literal for int() mit Eingabe '//[***]\n1***2***3') | | Marvin | yes | test_add_numbers_greater_1000_and_minus (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative numbers are not allowed: -3' vs. erwartet 'negatives not allowed: -3'), test_add_numbers_with_custom_delimiter (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative numbers are not allowed: -3' vs. erwartet 'negatives not allowed: -3'), test_multiple_negative_numbers_exception (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative numbers are not allowed: -1, -2' vs. erwartet 'negatives not allowed: -1,-2'), test_negative_number_exception (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative numbers are not allowed: -1' vs. erwartet 'negatives not allowed: -1') | -| Wasili | no | none \ No newline at end of file +| Wasili | no | none +| Lasse | yes | test_add_numbers_greater_1000_and_minus (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative nicht erlaubt: [-3]' vs. erwartet 'negatives not allowed: -3'), test_add_numbers_with_custom_delimiter (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative nicht erlaubt: [-3]' vs. erwartet 'negatives not allowed: -3'), test_multiple_negative_numbers_exception (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative nicht erlaubt: [-1, -2]' vs. erwartet 'negatives not allowed: -1,-2'), test_negative_number_exception (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative nicht erlaubt: [-1]' vs. erwartet 'negatives not allowed: -1') | \ No newline at end of file -- GitLab