Created
August 21, 2020 16:20
-
-
Save sritchie/357568dbf9bbf55114ab5b41d940c61f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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