close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 2646


Ignore:
Timestamp:
2015-06-20T14:54:47-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/5am-poly.lisp

    r2645 r2646  
    6262(def-fixture poly-context ()
    6363  (let ((p (make-instance 'poly))
    64         (q (make-instance 'poly :order #'grlex>))
    65         (p+q (make-instance 'poly))
    66         (p-q (make-instance 'poly)))
     64        (q (make-instance 'poly :order #'grlex>)))
    6765    (dolist (x '( (2 . 22)  (4 . 44) (5 . 55)    ))
    6866      (insert-item p (make-instance 'term :exponents (list (car x)) :coeff (cdr x))))
     
    7775  "Polynomial addition"
    7876  (with-fixture poly-context ()
    79     (is (r-equalp (add-to p q) p+q)))
     77    (let ((p+q (make-instance 'poly)))
     78      (is (r-equalp (add-to p q) p+q))))
    8079  (with-fixture poly-context ()
    81     (is (r-equalp (subtract-from p q) p-q))))
     80    (let ((p-q (make-instance 'poly)))
     81      (is (r-equalp (subtract-from p q) p-q)))))
     82
    8283
    8384
Note: See TracChangeset for help on using the changeset viewer.