;; ... whew!
+;; Run/wrap request stuff
+;; ----------------------
+
+(let ((wrapped (wrap (+ 1 2))))
+ (test-assert (procedure? wrapped))
+ (test-equal (wrapped) 3))
+
+(let ((run-two-squared (run (lambda () (* 2 2)))))
+ (test-assert (run-request? run-two-squared))
+ (test-assert (procedure? (run-request-proc run-two-squared)))
+ (test-equal ((run-request-proc run-two-squared)) 4)
+ (test-eq (run-request-when run-two-squared) #f))
+
+(let ((run-two-squared (run (lambda () (* 2 2)) '(88 . 0))))
+ (test-assert (run-request? run-two-squared))
+ (test-assert (procedure? (run-request-proc run-two-squared)))
+ (test-equal ((run-request-proc run-two-squared)) 4)
+ (test-equal (run-request-when run-two-squared) '(88 . 0)))
+
+(let ((run-two-squared (run-wrap (* 2 2))))
+ (test-assert (run-request? run-two-squared))
+ (test-assert (procedure? (run-request-proc run-two-squared)))
+ (test-equal ((run-request-proc run-two-squared)) 4)
+ (test-eq (run-request-when run-two-squared) #f))
+
+(let ((run-two-squared (run-wrap-at (* 2 2) '(88 . 0))))
+ (test-assert (run-request? run-two-squared))
+ (test-assert (procedure? (run-request-proc run-two-squared)))
+ (test-equal ((run-request-proc run-two-squared)) 4)
+ (test-equal (run-request-when run-two-squared) '(88 . 0)))
+
+
+;; Agenda tests
+;; ------------
+
+
+
+
;; End tests
(test-end "tests")