tests in dateien

This commit is contained in:
kreischeran103444 committed 2026-11-05 13:08:07 +01:00
1 parent 2ac32bc21f
commit a3d0432752
5 files changed
+102 -58

No files matched your search

+14 -1
View File
@@ -5,4 +5,17 @@ words = ["Hofmann", "was", "right", "about", "something"]
#print(sentence)
def trump(words):
return " ".join(map(lambda w: w.upper(), words))
return " ".join(map(lambda w: w.upper(), words))
def test_shout_wandelt_in_grossbuchstaben_um():
# Arrange
words = ["Hofmann", "was", "right", "about", "something"]
erwartet = "HOFMANN WAS RIGHT ABOUT SOMETHING"
# Act
ergebnis = trump(words)
# Assert
assert ergebnis == erwartet
test_shout_wandelt_in_grossbuchstaben_um()