mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-30 06:50:31 +02:00
Expect a "Bad variable" error for (set! #f 1).
This commit is contained in:
parent
6d1a2e9f4b
commit
64daa01285
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
;;;; srfi-17.test --- test suite for Guile's SRFI-17 functions. -*- scheme -*-
|
;;;; srfi-17.test --- test suite for Guile's SRFI-17 functions. -*- scheme -*-
|
||||||
;;;;
|
;;;;
|
||||||
;;;; Copyright (C) 2001 Free Software Foundation, Inc.
|
;;;; Copyright (C) 2001, 2003 Free Software Foundation, Inc.
|
||||||
;;;;
|
;;;;
|
||||||
;;;; This program is free software; you can redistribute it and/or modify
|
;;;; This program is free software; you can redistribute it and/or modify
|
||||||
;;;; it under the terms of the GNU General Public License as published by
|
;;;; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -31,5 +31,5 @@
|
||||||
(set! (symbol->string 'x) 1))
|
(set! (symbol->string 'x) 1))
|
||||||
|
|
||||||
(pass-if-exception "(set! '#f 1)"
|
(pass-if-exception "(set! '#f 1)"
|
||||||
exception:wrong-type-arg
|
exception:bad-variable
|
||||||
(eval '(set! '#f 1) (interaction-environment)))))
|
(eval '(set! '#f 1) (interaction-environment)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue