Skip to content

Commit

Permalink
Create fortune_cookies.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Apr 12, 2020
1 parent f8887bf commit 8669b14
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/fortune_cookies.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""
"""
from .context import fabulist


def demo_quotes():
fab = fabulist.Fabulist()

templates = [
"$(Verb:ing) is better than $(verb:ing).",
"$(Noun:an) a day keeps the $(noun:plural) away.",
"If you want to $(verb) $(adv:#positive), $(verb) $(adv:#positive)!",
'Confucius says: "The one who wants to $(verb) must $(verb) $(adv) the $(noun)!"',
'Soon a $(adj) $(noun) will $(verb) $(adv) your life!"',
]
for q in fab.generate_quotes(templates, count=100):
print(q)


if __name__ == '__main__':
demo_quotes()

0 comments on commit 8669b14

Please sign in to comment.