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 3637 for branches/f4grobner


Ignore:
Timestamp:
2015-09-05T20:37:44-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

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

    r3636 r3637  
    8686(test poly-add
    8787  "Polynomial addition"
    88   (with-fixture poly-add-context () (is (r-equalp (add-to p q) p+q)))
    89   (with-fixture poly-add-context () (is (r-equalp (r+ p q) p+q)))
    90   (with-fixture poly-add-context () (is (r-equalp (subtract-from p q) p-q)))
    91   (with-fixture poly-add-context () (is (r-equalp (r- p q) p-q)))
    92   (with-fixture poly-add-context () (is (r-equalp (unary-minus p) p-uminus)))
     88  (with-fixture poly-add-context () (is (universal-equalp (add-to p q) p+q)))
     89  (with-fixture poly-add-context () (is (universal-equalp (r+ p q) p+q)))
     90  (with-fixture poly-add-context () (is (universal-equalp (subtract-from p q) p-q)))
     91  (with-fixture poly-add-context () (is (universal-equalp (r- p q) p-q)))
     92  (with-fixture poly-add-context () (is (universal-equalp (unary-minus p) p-uminus)))
    9393  )
    9494
     
    112112(test poly-multiply
    113113  "Polynomial multiplication"
    114   (with-fixture poly-multiply-context () (is (r-equalp (r* p q) p*q)))
     114  (with-fixture poly-multiply-context () (is (universal-equalp (r* p q) p*q)))
    115115  )
    116116
     
    123123         (q-ext (alist->poly '( ((0 1 0) . 1) ((0 1 2) . 3))))
    124124         (plist-st-ext (list p-ext q-ext)))
    125     (is (r-equalp (standard-extension plist) plist-st-ext))))
     125    (is (universal-equalp (standard-extension plist) plist-st-ext))))
    126126
    127127(test poly-standard-extension-1
     
    133133         (q-ext (alist->poly '( ((0 0 0) . -1) ((0 1 0) . 1) ((0 1 2) . 3))))
    134134         (plist-st-ext (list p-ext q-ext)))
    135     (is (r-equalp (standard-extension-1 plist) plist-st-ext))))
     135    (is (universal-equalp (standard-extension-1 plist) plist-st-ext))))
    136136
    137137(test poly-standard-sum
     
    142142         (std-sum (alist->poly '(((0 0 0) . -1) ((0 1 0) . 1) ((0 1 2) . 3)
    143143                                 ((1 0 0) . 1) ((1 0 1) . 2)))))
    144     (is (r-equalp (standard-sum plist) std-sum))))
     144    (is (universal-equalp (standard-sum plist) std-sum))))
    145145
    146146(run! 'poly-suite)
Note: See TracChangeset for help on using the changeset viewer.