Changeset 2646 for branches/f4grobner
- Timestamp:
- 2015-06-20T14:54:47-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-poly.lisp
r2645 r2646 62 62 (def-fixture poly-context () 63 63 (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>))) 67 65 (dolist (x '( (2 . 22) (4 . 44) (5 . 55) )) 68 66 (insert-item p (make-instance 'term :exponents (list (car x)) :coeff (cdr x)))) … … 77 75 "Polynomial addition" 78 76 (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)))) 80 79 (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 82 83 83 84
Note:
See TracChangeset
for help on using the changeset viewer.