Skip to content

Instantly share code, notes, and snippets.

@sritchie

sritchie/errors.clj

Created Aug 21, 2020
Embed
What would you like to do?
(deftest bigint-repro
(testing "[No method in multimethod 'sicmutils.generic/div' for dispatch value: [#object[Number] :sicmutils.polynomial/polynomial]]"
(hermetic-simplify-fixture
(fn []
(sicmutils.generic/simplify
(* 0.5
(/ 1 (* 2 'x)))))))
(testing "TypeError: Cannot mix BigInt and other types, use explicit conversions"
(* 0.5 (u/bigint 2))
(* (sicmutils.rational-function/make
(sicmutils.polynomial/make 2 [[[0 0] 0.5]])
(sicmutils.polynomial/make 2 [[[1 0] 2]]))
(sicmutils.polynomial/make 2 [[[0 2] 4]]))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.