diff --git a/test-suite/ChangeLog b/test-suite/ChangeLog index 3bd320890..12be6b2e2 100644 --- a/test-suite/ChangeLog +++ b/test-suite/ChangeLog @@ -1,3 +1,7 @@ +2001-06-30 Dirk Herrmann + + * tests/goops.test: Started with some real tests. + 2001-06-30 Dirk Herrmann * guile-test: Use module (ice-9 rdelim). diff --git a/test-suite/tests/goops.test b/test-suite/tests/goops.test index c5d5984d2..9705b19bc 100644 --- a/test-suite/tests/goops.test +++ b/test-suite/tests/goops.test @@ -1,6 +1,6 @@ ;;;; goops.test --- test suite for GOOPS -*- scheme -*- ;;;; -;;;; Copyright (C) 2001 Free Software Foundation, Inc. +;;;; Copyright (C) 2001 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 @@ -27,3 +27,74 @@ (use-modules (oop goops)) ;;; more tests here... + +(with-test-prefix "basic classes" + + (with-test-prefix "" + + (pass-if "instance?" + (instance? )) + + (pass-if "class-of" + (eq? (class-of ) )) + + (pass-if "is a class?" + (is-a? )) + + (pass-if "class-name" + (eq? (class-name ) ')) + + (pass-if "direct superclasses" + (equal? (class-direct-supers ) '())) + + (pass-if "superclasses" + (equal? (class-precedence-list ) (list ))) + + (pass-if "direct slots" + (equal? (class-direct-slots ) '())) + + (pass-if "slots" + (equal? (class-slots ) '()))) + + (with-test-prefix "" + + (pass-if "instance?" + (instance? )) + + (pass-if "class-of" + (eq? (class-of ) )) + + (pass-if "is a class?" + (is-a? )) + + (pass-if "class-name" + (eq? (class-name ) ')) + + (pass-if "direct superclasses" + (equal? (class-direct-supers ) (list ))) + + (pass-if "superclasses" + (equal? (class-precedence-list ) (list ))) + + (pass-if "direct slots" + (equal? (class-direct-slots ) '())) + + (pass-if "slots" + (equal? (class-slots ) '()))) + + (with-test-prefix "" + + (pass-if "instance?" + (instance? )) + + (pass-if "class-of" + (eq? (class-of ) )) + + (pass-if "is a class?" + (is-a? )) + + (pass-if "class-name" + (eq? (class-name ) ')) + + (pass-if "direct superclass" + (equal? (class-direct-supers ) (list )))))