1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-02 04:40:29 +02:00
Commit graph

9 commits

Author SHA1 Message Date
Marius Vollmer
92205699d0 The FSF has a new address. 2005-05-23 19:57:22 +00:00
Dirk Herrmann
62ed3710b7 * tests/goops.test: Wrap tests in module (test-suite
test-<file-name without .test>).  Remove calls to deprecated macro
	`undefine'.
2004-05-24 04:01:06 +00:00
Mikael Djurfeldt
47cd67db2f * tests/goops.test: Added tests for correctness of class
precedence list in all basic classes and tests for eqv? and
equal?.

* goops.scm (compute-getters-n-setters): Check for bad init-thunk.
(eqv?): Added default method.
(equal?): New default method which uses eqv?.

* eq.c (scm_eqv_p): Turned into a primitive generic.
2003-04-17 19:23:52 +00:00
Mikael Djurfeldt
57b1d51841 * tests/goops.test: Added tests for correctness of class
precedence list in all basic classes and tests for equal?.
2003-04-17 15:25:15 +00:00
Mikael Djurfeldt
58241edc7d * tests/goops.test: Added tests for class redefinition, object
update and active slots.

* goops.scm (compute-getter-method): For custom getter: Check
boundness even if there is an init-thunk.  (The getter can return
#<unbound> even if the slot has been set before.)
(remove-class-accessors!): Also remove accessor-method from its
accessor.

* goops.c (scm_sys_fast_slot_ref): Use SCM_SLOT instead of
scm_at_assert_bound_ref.  (We don't want the unbound check.  See
oop/goops/active-slot.scm.)
2003-04-15 01:17:36 +00:00
Dirk Herrmann
33e04d5492 * oop/goops.scm (define-generic, define-accessor): Make sure that
define-generic and define-accessor will continue to work when
mmacros are expanded before execution.

* test-suite/tests/goops.test: Added tests for define-generic and
define-accessor.
2002-07-13 09:44:39 +00:00
Dirk Herrmann
9f04540330 * oop/goops.scm (define-class): Make sure that define-class will
continue to work when mmacros are expanded before execution.

* test-suite/tests/goops.test: Added tests for define-class.
2002-07-13 08:18:35 +00:00
Dirk Herrmann
bdd2c6f4f4 * Added some simple goops test for a beginning. 2001-06-30 20:03:14 +00:00
Marius Vollmer
4ed29c73dd New, minimal tests. 2001-05-21 13:22:18 +00:00