tests in dateien
This commit is contained in:
1 parent
2ac32bc21f
commit
a3d0432752
5 files changed
+102
-58
No files matched your search
+14
-1
@@ -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()
|
||||
Reference in new issue
Block a user