Skip to content

Commit

Permalink
updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed Aug 20, 2023
1 parent bcdde8e commit 74bda40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
4 changes: 2 additions & 2 deletions notebooks/dum/dummy.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(:require [scicloj.note-to-test.v1.api :as note-to-test]
[tablecloth.api :as tc]))

:note-to-test/skip
^:note-to-test/skip
(note-to-test/define-value-representations!
[{:predicate var?
:representation (constantly :var)}
Expand All @@ -20,7 +20,7 @@
5
6)

:note-to-test/skip
^:note-to-test/skip
(+ 1 2)

(defn f [x]
Expand Down
17 changes: 0 additions & 17 deletions test/dum/dummy_generated_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,6 @@

(deftest test-everything

(is (= (note-to-test/represent-value
(note-to-test/define-value-representations!
[{:predicate var?
:representation (constantly :var)}
{:predicate tc/dataset?
:representation (fn [ds]
(-> ds
(update-vals vec)
(->> (into {}))))}
{:predicate (partial = 5)
:representation (constantly :five)}]))
:ok))


(is (= (note-to-test/represent-value
(+ 2 3))
Expand All @@ -33,10 +20,6 @@
15))


(is (= (note-to-test/represent-value
(+ 1 2))
3))


(is (= (note-to-test/represent-value
(defn f [x]
Expand Down

0 comments on commit 74bda40

Please sign in to comment.