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


Ignore:
Timestamp:
2015-06-18T18:10:45-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

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

    r2305 r2306  
    5252(in-suite monom-suite)
    5353
    54 (def-fixture monom-context (body)
    55   (let ((z (make-instance 'monom  :dimension 3))
    56          (m (make-instance 'monom  :dimension 3 :exponents '(1 2 3)))
    57          (n (make-instance 'monom  :dimension 3 :exponents '(4 5 6)))
    58          (m*n (make-instance 'monom  :dimension 3 :exponents '(5 7 9)))
    59          (n/m (make-instance 'monom  :dimension 3 :exponents '(3 3 3)))
    60          (m-tensor-n (make-instance 'monom  :exponents '(1 2 3 4 5 6))))
    61     body))
     54(def-fixture monom-context ()
     55  `(let ((z (make-instance 'monom  :dimension 3))
     56        (m (make-instance 'monom  :dimension 3 :exponents '(1 2 3)))
     57        (n (make-instance 'monom  :dimension 3 :exponents '(4 5 6)))
     58        (m*n (make-instance 'monom  :dimension 3 :exponents '(5 7 9)))
     59        (n/m (make-instance 'monom  :dimension 3 :exponents '(3 3 3)))
     60        (m-tensor-n (make-instance 'monom  :exponents '(1 2 3 4 5 6))))
     61     ,&body))
    6262
    6363(test monom-basics
    64   "Monom basic ops"
    65   (with-fixture monom-context
    66       (is (= (r-dimension m) 3))))
     64  "Monom basics"
     65  (is-true (print (macroexpand '(with-fixture monom-context (m)
     66                                   (= (r-dimension m) 3))))))
    6767
    6868#|
     69
    6970(test monom
    7071  "monom"
Note: See TracChangeset for help on using the changeset viewer.