source: trunk/source/tests/ansi-tests/return-from.lsp @ 8991

Last change on this file since 8991 was 8991, checked in by gz, 11 years ago

Check in the gcl ansi test suite (original, in preparation for making local changes)

File size: 533 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Tue Feb 24 20:22:23 2004
4;;;; Contains: Tests of RETURN-FROM
5
6(in-package :cl-test)
7
8;;; RETURN-FROM is tested extensively in other files
9
10(deftest return-from.1
11  (block xyz (return-from xyz) :bad)
12  nil)
13
14(deftest return-from.2
15  (block nil (return-from nil :good) :bad)
16  :good)
17
18;;; Macros are expanded in the appropriate environment
19
20(deftest return-from.3
21  (macrolet
22   ((%m (z) z))
23   (block foo (return-from foo (expand-in-current-env (%m :good)))))
24  :good)
Note: See TracBrowser for help on using the repository browser.