mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-07 18:12:26 +02:00
Add new GOOPS tests for built-in types.
* test-suite/tests/goops.test ("classes for built-in types"): New test prefix.
This commit is contained in:
parent
1b131cf160
commit
8455a73329
1 changed files with 19 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
;;;; goops.test --- test suite for GOOPS -*- scheme -*-
|
;;;; goops.test --- test suite for GOOPS -*- scheme -*-
|
||||||
;;;;
|
;;;;
|
||||||
;;;; Copyright (C) 2001,2003,2004, 2006, 2008 Free Software Foundation, Inc.
|
;;;; Copyright (C) 2001,2003,2004, 2006, 2008, 2009 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
|
||||||
|
@ -125,6 +125,24 @@
|
||||||
table))))
|
table))))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(with-test-prefix "classes for built-in types"
|
||||||
|
|
||||||
|
(pass-if "subr"
|
||||||
|
(eq? (class-of fluid-ref) <procedure>))
|
||||||
|
|
||||||
|
(pass-if "gsubr"
|
||||||
|
(eq? (class-of hashq-ref) <procedure>))
|
||||||
|
|
||||||
|
(pass-if "car"
|
||||||
|
(eq? (class-of car) <procedure>))
|
||||||
|
|
||||||
|
(pass-if "string"
|
||||||
|
(eq? (class-of "foo") <string>))
|
||||||
|
|
||||||
|
(pass-if "port"
|
||||||
|
(is-a? (%make-void-port "w") <port>)))
|
||||||
|
|
||||||
|
|
||||||
(with-test-prefix "defining classes"
|
(with-test-prefix "defining classes"
|
||||||
|
|
||||||
(with-test-prefix "define-class"
|
(with-test-prefix "define-class"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue