Changeset 3978
- Timestamp:
- 2016-05-30T17:40:39-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-pair-queue.lisp
r3973 r3978 49 49 50 50 (defpackage #:5am-pair-queue 51 (:use :cl :it.bese.fiveam :monom :polynomial :symbolic-polynomial :p air-queue))51 (:use :cl :it.bese.fiveam :monom :polynomial :symbolic-polynomial :priority-queue :pair-queue)) 52 52 53 53 (in-package :5am-pair-queue) … … 61 61 (let* ((p (string->poly "11*x*y*z+13*x^2*y^3*z^4" '(x y z))) 62 62 (q (string->poly "5*x+7*y*z^2" '(x y z))) 63 (queue (make- instance 'critical-pair-queue :poly-list (list p q))))63 (queue (make-critical-pair-queue :poly-list (list p q)))) 64 64 (&body))) 65 65 … … 67 67 "Queue building" 68 68 (with-fixture poly-context () 69 (is (= ( queue-size queue) 2))))69 (is (= (priority-queue-size queue) 2)))) 70 70 71 71 (test queue-access 72 72 "Queue access" 73 73 (with-fixture poly-context () 74 (let ((pair ( dequeue queue)))74 (let ((pair (priority-queue-remove queue))) 75 75 (is (universal-equalp (critical-pair-first pair) p)) 76 76 (is (universal-equalp (critical-pair-second pair) q)))))
Note:
See TracChangeset
for help on using the changeset viewer.