зеркало из https://github.com/microsoft/same-ish.git
require macros
This commit is contained in:
Родитель
43f59bf29f
Коммит
65a920eaa5
|
@ -2,7 +2,9 @@
|
||||||
;; Licensed under the MIT License.
|
;; Licensed under the MIT License.
|
||||||
(ns same
|
(ns same
|
||||||
{:deprecated "0.1.5" :superseded-by "same.core"}
|
{:deprecated "0.1.5" :superseded-by "same.core"}
|
||||||
(:require [same.core]))
|
(:require [same.core])
|
||||||
|
#?(:cljs
|
||||||
|
(:require-macros [same])))
|
||||||
|
|
||||||
(def ish? same.core/ish?)
|
(def ish? same.core/ish?)
|
||||||
(def zeroish? same.core/zeroish?)
|
(def zeroish? same.core/zeroish?)
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
(:require #?(:clj [clojure.test :refer [assert-expr do-report]])
|
(:require #?(:clj [clojure.test :refer [assert-expr do-report]])
|
||||||
#?(:clj [same.diff :as diff])
|
#?(:clj [same.diff :as diff])
|
||||||
[same.compare :refer [near-zero]]
|
[same.compare :refer [near-zero]]
|
||||||
[same.ish :as ish :refer [ish]]))
|
[same.ish :as ish :refer [ish]])
|
||||||
|
#?(:cljs
|
||||||
|
(:require-macros [same.core])))
|
||||||
|
|
||||||
(defn ish?
|
(defn ish?
|
||||||
"Compare one or more values to an expected value, returning true if they are the same-ish.
|
"Compare one or more values to an expected value, returning true if they are the same-ish.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче