arith-2.scm 178 B

12345678
  1. (use-modules (trs examples))
  2. (use-modules (srfi srfi-64))
  3. (test-begin "arith-2")
  4. (test-equal (arith-2 '(^ (+ a b) 2))
  5. '(+ (* a a) (+ (* 2 b a) (* b b))))
  6. (test-end "arith-2")