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


Ignore:
Timestamp:
2015-06-18T16:26:36-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

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

    r2188 r2290  
    5454(test monom
    5555  "monom"
    56   (let ((z (make-monom :dimension 3))
    57         (m (make-monom :dimension 3 :initial-exponents '(1 2 3)))
    58         (n (make-monom :dimension 3 :initial-exponents '(4 5 6)))
    59         (m*n (make-monom :dimension 3 :initial-exponents '(5 7 9)))
    60         (n/m (make-monom :dimension 3 :initial-exponents '(3 3 3)))
    61         (m-tensor-n (make-monom :initial-exponents '(1 2 3 4 5 6))))
     56  (let ((z (make-instance 'monom :dimension 3))
     57        (m (make-instance 'monom :dimension 3 :initial-exponents '(1 2 3)))
     58        (n (make-instance 'monom :dimension 3 :initial-exponents '(4 5 6)))
     59        (m*n (make-instance 'monom :dimension 3 :initial-exponents '(5 7 9)))
     60        (n/m (make-instance 'monom :dimension 3 :initial-exponents '(3 3 3)))
     61        (m-tensor-n (make-instance 'monom :initial-exponents '(1 2 3 4 5 6))))
    6262    (is (= (r-dimension m) 3))
    6363    (is (= (r-elt m 2) 3))
     
    7070    (signals
    7171        (error "INITIAL-EXPONENTS must have length DIMENSION")
    72       (make-monom :dimension 3 :initial-exponents '(1 2 3 4 5 6)))
     72      (make-instance 'monom :dimension 3 :initial-exponents '(1 2 3 4 5 6)))
    7373    (is-true (r-divides-p m n))
    7474    (is-false (r-divides-p n m))
    7575    (is (r-equalp (r-gcd m n) m))
    7676    (is (r-equalp (r-lcm m n) n))
    77     (is-true (r-depends-p m 0))))
     77    (is-true (r-depends-p m 0))
     78    (signals
     79        (error "Index out of bounds")
     80      (r-depends-p m 3))))
    7881
    7982 
Note: See TracChangeset for help on using the changeset viewer.