Skip to content

Commit

Permalink
[nop] Update Encore API
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Jan 29, 2024
1 parent 1057ad7 commit cc37d46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/taoensso/truss.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@

(macroexpand '(have string? 5))
(macroexpand '(have string? 5 :data "foo"))
(macroexpand '(have string? 5 :data (enc/get-env)))
(let [x :x] (have string? 5 :data (enc/get-env)))
(macroexpand '(have string? 5 :data (enc/get-locals)))
(let [x :x] (have string? 5 :data (enc/get-locals)))

(have string? 5)
(have string? 5 :data {:a "a"})
(have string? 5 :data {:a (/ 5 0)})

((fn [x]
(let [a "a" b "b"]
(have string? x :data {:env (enc/get-env)}))) 5)
(have string? x :data {:env (enc/get-locals)}))) 5)

(do
(set! *assert* false)
Expand Down

0 comments on commit cc37d46

Please sign in to comment.