summary refs log tree commit diff
path: root/src/story/story.test.fnl
diff options
context:
space:
mode:
authordozens2024-06-25 21:22:35 -0600
committerdozens2024-06-30 23:24:42 -0600
commitbf71791fc540a584dd6d88548c91192294d106bc (patch)
treeba73c1f1616c19a34e33634a102c9d84184cada7 /src/story/story.test.fnl
parent9bf31e86cef62bed76a35353e791768960b14d70 (diff)
feat: add story engine HEAD main
Diffstat (limited to 'src/story/story.test.fnl')
-rw-r--r--src/story/story.test.fnl16
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)))))
+
+