File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 867
867
:render-fn 'nextjournal.clerk.render/render-number
868
868
#?@(:clj [:transform-fn (update-val #(cond-> %
869
869
(or (instance? clojure.lang.Ratio %)
870
- (instance? clojure.lang.BigInt %)) pr-str))])})
870
+ (instance? clojure.lang.BigInt %)
871
+ (> % 9007199254740992 )
872
+ (< % -9007199254740992 )) pr-str))])})
871
873
872
874
(def number-hex-viewer
873
875
{:name `number-hex-viewer :render-fn '(fn [num] (nextjournal.clerk.render/render-number (str " 0x" (.toString (js/Number. num) 16 ))))})
Original file line number Diff line number Diff line change 249
249
(is (match? {:nextjournal/value " 1142497398145249635243N" }
250
250
(v/present 1142497398145249635243N )))
251
251
(is (match? {:nextjournal/value " 10/33" }
252
- (v/present 10/33 ))))
252
+ (v/present 10/33 )))
253
+ (is (match? {:nextjournal/value " 9007199254740993" }
254
+ (v/present 9007199254740993 )))
255
+ (is (match? {:nextjournal/value " -9007199254740993" }
256
+ (v/present -9007199254740993 ))))
253
257
254
258
(testing " opts are not propagated to children during presentation"
255
259
(let [count-opts (fn [o]
You can’t perform that action at this time.
0 commit comments