Skip to content

Commit

Permalink
Add forgotten test for daemon character
Browse files Browse the repository at this point in the history
Seems it was not checked, but correct output is in the data
  • Loading branch information
ShockwaveNN committed Nov 15, 2022
1 parent b28ca62 commit 760af34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cowsay/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,12 @@ def test_cow(self):
solution = delete_empty_lines(COW_SOLUTION)
assert output == solution

def test_daemon(self):
output = capture_output(daemon, (LOREM))
output = delete_empty_lines(output)
solution = delete_empty_lines(DAEMON_SOLUTION)
assert output == solution

def test_dragon(self):
output = capture_output(dragon, (LOREM))
output = delete_empty_lines(output)
Expand Down

0 comments on commit 760af34

Please sign in to comment.