- Timestamp:
- 2016-06-03T11:14:45-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-criterion.lisp
r4176 r4177 88 88 :first p1 89 89 :second p2)) 90 (b-done (make-hash-table)) 90 (b-done (make-hash-table)) ;TODO: make meaningful B-DONE table 91 91 (partial-basis nil)) 92 92 (&body))) … … 97 97 (is-false (criterion-2 pair b-done partial-basis)))) 98 98 99 (def-fixture criterion-2-success-context () 100 (let* ((f (string->poly "x^2+2*y" '(x y z))) 101 (g (string->poly "y*z + z^2" '(x y z))) 102 (h (string->poly "x^2*y*z" '(x y z))) 103 (pair (make-instance 'critical-pair :first f :second g)) 104 (b-done (make-hash-table :test #'equal)) ;TODO: make meaningful B-DONE table 105 (partial-basis (list h))) 106 (setf (gethash (list f h) b-done) t 107 (gethash (list h f) b-done) t 108 (gethash (list h g) b-done) t 109 (gethash (list g h) b-done) t) 110 (maphash #'(lambda (key value) 111 (declare (ignore value)) 112 (print (mapcar #'->sexp key))) 113 b-done) 114 (&body))) 115 116 (test criterion-2-success 117 "Second Buchberger criterion success" 118 (with-fixture criterion-2-success-context () 119 (is-true (criterion-2 pair b-done partial-basis)))) 120 99 121 100 122 (run! 'criterion-suite)
Note:
See TracChangeset
for help on using the changeset viewer.