- Timestamp:
- 2015-06-10T09:50:02-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-tests.lisp
r1098 r1099 198 198 (read-infix-form :stream s)) 199 199 '(+ (- (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))) 207 204 208 205 (run! 'ngrobner-suite)
Note:
See TracChangeset
for help on using the changeset viewer.