1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-06 23:50:18 +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:
Ludovic Courtès 2009-02-17 00:07:57 +01:00
parent 1b131cf160
commit 8455a73329

View file

@ -1,6 +1,6 @@
;;;; 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
;;;; it under the terms of the GNU General Public License as published by
@ -125,6 +125,24 @@
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 "define-class"