Changeset 4448 for branches/f4grobner
- Timestamp:
- 2016-06-11T13:13:22-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-monom.lisp
r4355 r4448 229 229 ) 230 230 231 (test term-auto-wrapping-when-created 232 "Term auto-wrapping upon creation" 233 (let ((term-with-integer-coeff (make-instance 'term :dimension 3 :coeff 7)) 234 (term-with-rational-coeff (make-instance 'term :dimension 3 :coeff 3/5))) 235 (is (eq (class-of (term-coeff term-with-integer-coeff)) (find-class 'integer-ring))) 236 (is (eq (class-of (term-coeff term-with-rational-coeff)) (find-class 'rational-field))))) 237 238 (test term-auto-wrapping-when-assigned 239 "Term auto-wrapping upon assignment" 240 (let ((term-with-null-coeff (make-instance 'term :dimension 3 :coeff nil))) 241 (setf (term-coeff term-with-null-coeff) 7) 242 (is (eq (class-of (term-coeff term-with-null-coeff)) (find-class 'integer-ring))))) 243 244 245 231 246 (run! 'monom-suite) 232 247 (format t "All tests done!~%")
Note:
See TracChangeset
for help on using the changeset viewer.