Fix tests to check for equality
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Nov 2015 18:17:33 +0000 (12:17 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Nov 2015 18:17:33 +0000 (12:17 -0600)
* tests/test-agenda.scm: Tests were checking for test-assert
  where they should have been checking for test-equal.

tests/test-agenda.scm

index 628fb1e4ea80070555d691d07b2a3ed82726a98f..922b2d34732ae07090f789906af7358c2f66e70c 100644 (file)
   (enq! q local-func-gets-break)
   (start-agenda (make-agenda #:queue q)
                 #:stop-condition (true-after-n-times 10))
-  (test-assert (speaker)
-               '("Time for exception fun!\n"
-                 "Here we go...\n"
-                 "in here now!\n"
-                 "Well that was fun :)\n")))
+  (test-equal (speaker)
+              '("Time for exception fun!\n"
+                "Here we go...\n"
+                "in here now!\n"
+                "Well that was fun :)\n")))
 
 (let ((q (make-q)))
   (set! speaker (speak-it))
   (enq! q (wrap (local-func-gets-break #:with-indirection #t)))
   (start-agenda (make-agenda #:queue q)
                 #:stop-condition (true-after-n-times 10))
-  (test-assert (speaker)
-               '("Time for exception fun!\n"
-                 "bebop\n"
-                 "Here we go...\n"
-                 "in here now!\n"
-                 "Well that was fun :)\n")))
+  (test-equal (speaker)
+              '("Time for exception fun!\n"
+                "bebop\n"
+                "Here we go...\n"
+                "in here now!\n"
+                "Well that was fun :)\n")))
 
 ;; Make sure catching tools work