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 3978


Ignore:
Timestamp:
2016-05-30T17:40:39-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

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

    r3973 r3978  
    4949
    5050(defpackage #:5am-pair-queue
    51   (:use :cl :it.bese.fiveam :monom :polynomial :symbolic-polynomial :pair-queue))
     51  (:use :cl :it.bese.fiveam :monom :polynomial :symbolic-polynomial :priority-queue :pair-queue))
    5252
    5353(in-package :5am-pair-queue)
     
    6161  (let* ((p (string->poly "11*x*y*z+13*x^2*y^3*z^4" '(x y z)))
    6262         (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))))
    6464    (&body)))
    6565
     
    6767  "Queue building"
    6868  (with-fixture poly-context ()
    69     (is (= (queue-size queue) 2))))
     69    (is (= (priority-queue-size queue) 2))))
    7070
    7171(test queue-access
    7272  "Queue access"
    7373  (with-fixture poly-context ()
    74     (let ((pair (dequeue queue)))
     74    (let ((pair (priority-queue-remove queue)))
    7575      (is (universal-equalp (critical-pair-first pair) p))
    7676      (is (universal-equalp (critical-pair-second pair) q)))))
Note: See TracChangeset for help on using the changeset viewer.