Skip to content

Commit

Permalink
#822: satisfies\?
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Oct 31, 2022
1 parent f6c6f9b commit b0cf270
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sci/impl/namespaces.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@
'protocol-type-impl (new-var 'protocol-type-impl types/type-impl)
#?@(:clj ['proxy* (new-var 'proxy* proxy/proxy* true)
'proxy (macrofy 'proxy proxy/proxy clojure-core-ns true)])
'satisfies? (copy-core-var sci.impl.protocols/satisfies?)
'satisfies? (copy-var sci.impl.protocols/satisfies? clojure-core-ns {:name 'satisfies?})
;; end protocols
;; IDeref as protocol
'deref (new-var 'deref core-protocols/deref*)
Expand Down
5 changes: 4 additions & 1 deletion test/sci/namespaces_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ bar/bar"}
(doseq [v '[macroexpand
find-ns
#?(:clj get-thread-bindings)
*print-namespace-maps*
satisfies?]]
(is (true? (eval* (str/replace "(string? (:doc (meta #'{{v}})))" "{{v}}" (str v)))))))
(testing "dynvars"
(doseq [v '[*print-namespace-maps*
*print-dup*
*print-readably*]]
(is (true? (eval* (str/replace "(string? (:doc (meta #'{{v}})))" "{{v}}" (str v)))))))
Expand Down

0 comments on commit b0cf270

Please sign in to comment.