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 1099


Ignore:
Timestamp:
2015-06-10T09:50:02-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

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

    r1098 r1099  
    198198                (read-infix-form :stream s))
    199199              '(+ (- (EXPT X 2) (EXPT Y 2)) (* (- (/ 4 3)) (EXPT U 2) (EXPT W 3)) (- 5))))
    200   (is (equalp (with-input-from-string (s "x^2+2*y^2")
    201                 (read-poly '(x y) :stream s))
    202               (make-poly-from-termlist (list (make-term (make-monom :initial-exponents '(2 0)) 1)
    203                                              (make-term (make-monom :initial-exponents '(0 2)) 2)))))
    204   (is (equalp (read-poly-from-string "x^2+2*y^2" '(x y)))
    205               (make-poly-from-termlist (list (make-term (make-monom :initial-exponents '(2 0)) 1)
    206                                              (make-term (make-monom :initial-exponents '(0 2)) 2))))))
     200  (let ((p (make-poly-from-termlist (list (make-term (make-monom :initial-exponents '(2 0)) 1)
     201                                          (make-term (make-monom :initial-exponents '(0 2)) 2)))))
     202    (is (equalp (with-input-from-string (s "x^2+2*y^2") (read-poly '(x y) :stream s)) p))
     203  (is (equalp (read-poly-from-string "x^2+2*y^2" '(x y))) p)))
    207204
    208205(run! 'ngrobner-suite)
Note: See TracChangeset for help on using the changeset viewer.