Commit f0f90cfb authored by pfdietz's avatar pfdietz

Added tests for BLOCK.

parent 83576620
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Sat Oct 12 12:30:46 2002
;;;; Contains: Tests of BLOCK
(in-package :cl-test)
(deftest block.1
(block foo
(return-from foo 1))
1)
(deftest block.2
(block nil
(block foo
(return 'good))
'bad)
good)
(deftest block.3
(block done
(flet ((%f (x) (return-from done x)))
(%f 'good))
'bad)
good)
(deftest block.4
(block foo
(block foo
(return-from foo 'bad))
'good)
good)
(deftest block.5
(block done
(flet ((%f (x) (return-from done x)))
(mapcar #'%f '(good bad bad)))
'bad)
good)
......@@ -9,6 +9,7 @@
;;; Tests of data and control flow
(load "places.lsp")
(load "block.lsp")
(load "call-arguments-limit.lsp")
(load "constantly.lsp")
(load "complement.lsp")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment