mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 14:30:34 +02:00
SRFI-35: Provide nice vtable names, to make GOOPS happier.
* module/srfi/srfi-35.scm (%make-condition-type): New procedure. (make-condition-type, make-compound-condition-type): Use it. * test-suite/tests/srfi-35.test ("condition types")["struct-vtable-name"]: New test.
This commit is contained in:
parent
ef171ff039
commit
f9e8030266
2 changed files with 25 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
;;;; srfi-35.test --- Test suite for SRFI-35 -*- Scheme -*-
|
||||
;;;; Ludovic Courtès <ludo@gnu.org>
|
||||
;;;;
|
||||
;;;; Copyright (C) 2007, 2008 Free Software Foundation, Inc.
|
||||
;;;; Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
;;;;
|
||||
;;;; 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
|
||||
|
@ -34,7 +34,11 @@
|
|||
(condition-type? &condition))
|
||||
|
||||
(pass-if "make-condition-type"
|
||||
(condition-type? (make-condition-type 'foo &condition '(a b)))))
|
||||
(condition-type? (make-condition-type 'foo &condition '(a b))))
|
||||
|
||||
(pass-if "struct-vtable-name"
|
||||
(let ((ct (make-condition-type 'chbouib &condition '(a b))))
|
||||
(eq? 'chbouib (struct-vtable-name ct)))))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue