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 2307


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

* empty log message *

File:
1 edited

Legend:

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

    r2306 r2307  
    5252(in-suite monom-suite)
    5353
    54 (def-fixture monom-context ()
    55   `(let ((z (make-instance 'monom  :dimension 3))
     54(def-fixture monom-context (form)
     55  (let ((z (make-instance 'monom  :dimension 3))
    5656        (m (make-instance 'monom  :dimension 3 :exponents '(1 2 3)))
    5757        (n (make-instance 'monom  :dimension 3 :exponents '(4 5 6)))
     
    5959        (n/m (make-instance 'monom  :dimension 3 :exponents '(3 3 3)))
    6060        (m-tensor-n (make-instance 'monom  :exponents '(1 2 3 4 5 6))))
    61      ,&body))
     61    form))
     62
     63(def-fixture foo (&body forms) (moo bar forms))
    6264
    6365(test monom-basics
    6466  "Monom basics"
    65   (is-true (print (macroexpand '(with-fixture monom-context (m)
    66                                    (= (r-dimension m) 3))))))
     67  ;;(is-true (print (macroexpand `(def-fixture foo (&body forms) (moo bar forms)))))
     68  ;;(is-true (print (macroexpand `(with-fixture foo ((baz boo))))))
     69  (is-true (print (macroexpand '(with-fixture monom-context ((= (r-dimension m) 3))))))
     70  )
     71
    6772
    6873#|
Note: See TracChangeset for help on using the changeset viewer.