Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
petra-viola committed Dec 22, 2023
2 parents e660a6c + 5dece60 commit 1bada0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/wortsalat/identify_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ def identify_tags(tag: str, text: str) -> Dict[str, List[str]]:

words_with_tag = list()

print(tagged_words)

for word in tagged_words:
print(word)
if word[2] == tag:
words_with_tag.append(word)

Expand Down
4 changes: 4 additions & 0 deletions tests/test_analyze_wortsalat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ def test_analyze_words():
text = "Hallo leute wir sind heute auf einem Bauernhof. Alle Tiere sind in Ordnung nur eins ist doof. Das Rapphuhn. Das rappt nun."
analyze_wortsalat(text)

def test_analyze_wordsalat_division_by_zero():
text = "Es kann nicht durch null geteilt werden."
analyze_wortsalat(text)

def test_print_wortsalat_small():
text = "Hallo leute wir sind heute auf einem Bauernhof. Alle Tiere sind in Ordnung nur eins ist doof. Das Rapphuhn. Das rappt nun."
print_wortsalat_small(text)
Expand Down

0 comments on commit 1bada0c

Please sign in to comment.