Skip to content

Commit df877ff

Browse files
committed
differential change
1 parent dd26d11 commit df877ff

5 files changed

+4
-496
lines changed

test/emmy/collection_test.cljc

-15
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
[emmy.calculus.derivative :refer [D]]
88
[emmy.collection :as collection]
99
[emmy.complex :refer [complex I]]
10-
[emmy.differential :as d]
1110
[emmy.function :as f]
1211
[emmy.generators :as sg]
1312
[emmy.generic :as g]
@@ -254,20 +253,6 @@
254253
:two-prime (complex 2 0)}))
255254
" with unequal keys, we fail.")))
256255

257-
(checking "d/perturbed?" 100
258-
[m (gen/map gen/keyword sg/any-integral)]
259-
(is (not (d/perturbed? m))
260-
"maps with no [[Differential]] aren't perturbed.")
261-
262-
(let [diff (d/bundle-element 1 1 0)]
263-
(is (d/perturbed? (assoc m :key diff))
264-
"adding a perturbed entry perturbs the map.")
265-
266-
(is (d/perturbed?
267-
{:outer-key
268-
(assoc m :key diff)})
269-
"d/perturbed? descends into keys")))
270-
271256
(let [m {:sin g/sin :cos g/cos}
272257
{D-sin :sin D-cos :cos} (D m)]
273258
(is (= {:sin ((D g/sin) 'x)

0 commit comments

Comments
 (0)