diff options
author | dozens | 2024-06-25 21:22:35 -0600 |
---|---|---|
committer | dozens | 2024-06-30 23:24:42 -0600 |
commit | bf71791fc540a584dd6d88548c91192294d106bc (patch) | |
tree | ba73c1f1616c19a34e33634a102c9d84184cada7 /src/story/story.test.fnl | |
parent | 9bf31e86cef62bed76a35353e791768960b14d70 (diff) |
Diffstat (limited to 'src/story/story.test.fnl')
-rw-r--r-- | src/story/story.test.fnl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/story/story.test.fnl b/src/story/story.test.fnl new file mode 100644 index 0000000..e4fce4d --- /dev/null +++ b/src/story/story.test.fnl @@ -0,0 +1,16 @@ +(let [{ + : flatten + : create-corpus + } (require :src.story.story)] + + (let [corpus (create-corpus "src/story/story.test.dat") + get-story (partial flatten corpus corpus.start)] + (print "\n== POEMS ==") + (for [_ 1 10] (print (get-story)))) + + (let [corpus (create-corpus "src/story/cards.dat") + get-story (partial flatten corpus corpus.draw)] + (print "\n== CARDS ==") + (for [_ 1 10] (print (get-story))))) + + |