guix: Use guile-3.0.
[8sync.git] / tests / test-agenda.scm
index ae53e55cf6db9440950d860a3f1d1afaaf9419b6..d96b601c4d359dfe40746c221df3132c8ce2d979 100644 (file)
@@ -1,5 +1,6 @@
 ;;; 8sync --- Asynchronous programming for Guile
 ;;; Copyright (C) 2015 Christopher Allan Webber <cwebber@dustycloud.org>
+;;; Copyright (C) 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
 ;;;
 ;;; This library is free software; you can redistribute it and/or
 ;;; modify it under the terms of the GNU Lesser General Public
   (run-it dummy-func))
 
 (with-fresh-speaker
- (start-agenda (make-agenda #:queue (make-q* run-dummy))
-               #:stop-condition (true-after-n-times 2))
+ (run-agenda (make-agenda #:queue (make-q* run-dummy))
+             #:stop-condition (true-after-n-times 2))
  (test-equal (get-spoken)
    '("I bet I can make you say you're a dummy!\n"
      "I'm a dummy\n")))
 
 ;; should only do the first one after one round though
 (with-fresh-speaker
- (start-agenda (make-agenda #:queue (make-q* run-dummy))
-               #:stop-condition (true-after-n-times 1))
+ (run-agenda (make-agenda #:queue (make-q* run-dummy))
+             #:stop-condition (true-after-n-times 1))
  (test-equal (get-spoken)
    '("I bet I can make you say you're a dummy!\n")))
 
 
 ;; End tests
 
-(test-end "test-agenda")
-
 ;; @@: A better way to handle this at the repl?
 (test-exit)
-
+(test-end "test-agenda")