Skip to content

Instantly share code, notes, and snippets.

@bpsm
Created April 20, 2010 12:09
Show Gist options
  • Save bpsm/372353 to your computer and use it in GitHub Desktop.
Save bpsm/372353 to your computer and use it in GitHub Desktop.
ERROR in (complex-sqrt) (run-test32965.clj:44)
Uncaught exception, not in assertion.
expected: nil
actual: java.lang.IllegalArgumentException: No method in multimethod 'sqrt' for di
spatch value: :clojure.contrib.complex-numbers/complex
at clojure.lang.MultiFn.getFn (MultiFn.java:115)
clojure.lang.MultiFn.invoke (MultiFn.java:157)
clojure.contrib.test_complex_numbers/fn (test_complex_numbers.clj:291)
clojure.test$test_var__6804$fn__6805.invoke (test.clj:644)
clojure.test/test_var (test.clj:644)
clojure.test$test_all_vars__6809$fn__6810$fn__6817.invoke (test.clj:659)
clojure.test/default_fixture (test.clj:617)
clojure.test$test_all_vars__6809$fn__6810.invoke (test.clj:659)
clojure.test/default_fixture (test.clj:617)
clojure.test/test_all_vars (test.clj:655)
clojure.test/test_ns (test.clj:677)
clojure.core$map__4089$fn__4090.invoke (core.clj:1870)
clojure.lang.LazySeq.sval (LazySeq.java:42)
clojure.lang.LazySeq.seq (LazySeq.java:56)
clojure.lang.Cons.next (Cons.java:37)
clojure.lang.RT.next (RT.java:540)
clojure.core/next (core.clj:54)
clojure.core/reduce (core.clj:707)
clojure.core/reduce (core.clj:698)
clojure.core$merge_with__4179.doInvoke (core.clj:2046)
clojure.lang.RestFn.applyTo (RestFn.java:140)
clojure.core/apply (core.clj:480)
clojure.test$run_tests__6826.doInvoke (test.clj:691)
clojure.lang.RestFn.invoke (RestFn.java:1261)
user$eval__12082$fn__12085.invoke (run-test32965.clj:46)
user/eval (run-test32965.clj:44)
clojure.lang.Compiler.eval (Compiler.java:5373)
clojure.lang.Compiler.load (Compiler.java:5784)
clojure.lang.Compiler.loadFile (Compiler.java:5747)
clojure.main/load_script (main.clj:213)
clojure.main/script_opt (main.clj:265)
clojure.main$main__6279.doInvoke (main.clj:346)
clojure.lang.RestFn.invoke (RestFn.java:409)
clojure.lang.Var.invoke (Var.java:365)
clojure.lang.AFn.applyToHelper (AFn.java:165)
clojure.lang.Var.applyTo (Var.java:482)
clojure.main.main (main.java:37)
FAIL in (complex-conjugate) (run-test32965.clj:44)
expected: (= (conjugate (complex 1 2)) (complex 1 -2))
actual: false
FAIL in (complex-conjugate) (run-test32965.clj:44)
expected: (= (conjugate (complex -3 -7)) (complex -3 7))
actual: false
FAIL in (complex-conjugate) (run-test32965.clj:44)
expected: (= (conjugate (imaginary -2)) (imaginary 2))
actual: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment