Skip to content

Commit

Permalink
Merge pull request #12 from zen-lang/refactor-async
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
carbon-hvze authored Aug 30, 2023
2 parents e5629aa + a0ba60a commit d0fde1c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
16 changes: 12 additions & 4 deletions src/zd/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
[clojure.walk]
[ring.util.codec]
[zd.view.core :as view])
(:import [org.httpkit BytesInputStream]))
(:import [org.httpkit BytesInputStream]
[java.io ByteArrayOutputStream]))


(defn form-decode [s]
Expand Down Expand Up @@ -195,15 +196,22 @@
(zen/stop-system ztx))

(comment
(def ztx (start nil true))

(def ztx (start))

(stop ztx)

(:zd/backlinks @ztx)

(def out (ByteArrayOutputStream.))

(-> (.diff (:zd/repo @ztx))
(.setShowNameAndStatusOnly true)
(.setOutputStream out)
(.call))

(config ztx)
(store/re-validate ztx)

(edamame.core/parse-string "{%name name %type fhir/Patient}")

)
(edamame.core/parse-string "{%name name %type fhir/Patient}"))
6 changes: 4 additions & 2 deletions test/zd/zentext_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ select 1
[:div
[:div.code-block
[:pre {}
[:code {} "select 1"]]]])
[:i.fa-solid.fa-copy.copy-button {}]
[:code {} "select 1"]
[:script string?]]]])

(match "
* list 1
Expand Down Expand Up @@ -257,7 +259,7 @@ select 1
[[:a {:href "/people.niquola"} 'people.niquola]])

(match-inline "Here is inline code `funciton()`"
[string? [:code {:class :c-1320827498} "funciton()"]])
[string? [:code {} "funciton()"]])

(match-inline "Here is **bold**"
[string? [:b "bold"]])
Expand Down

0 comments on commit d0fde1c

Please sign in to comment.