1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-16 18:50:23 +02:00
Commit graph

258 commits

Author SHA1 Message Date
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
Rob Browning
50d64f0d25 *** empty log message *** 2003-04-14 15:55:37 +00:00
Rob Browning
479c46eab8 * standalone/test-asmobs-lib.c (libtest_asmobs_init): include
test-asmobs-lib.x rather than test-asmobs-lib.x.c.
2003-04-14 15:55:23 +00:00
Rob Browning
8f9ae7fd52 * standalone/Makefile.am: change from .c.x to .x to be consistent
with the rest of guile.
2003-04-14 15:55:18 +00:00
Han-Wen Nienhuys
dff96e9567 (snarfcppopts): use DEFAULT_INCLUDES
instead of INCLUDES
2003-04-09 09:29:44 +00:00
Rob Browning
07921c7642 *** empty log message *** 2003-04-07 17:52:28 +00:00
Rob Browning
b4559de7a8 * standalone/Makefile.am: new file. 2003-04-07 17:50:48 +00:00
Rob Browning
ddb9c4ca1c * guile-test: added "Running test FOO" output by default. There
may be a good reason to remove this, but the output can be helpful
in determining where a failure occurred.
2003-04-07 17:50:41 +00:00
Rob Browning
257ca0d7c6 * standalone/test-num2integral.c: new test -- one new regression
check.
2003-04-07 17:48:31 +00:00
Rob Browning
51a186f75f * standalone/test-gh.c: new test code (migrated from
tests/c-api/) -- a trivial start.
2003-04-07 17:48:00 +00:00
Rob Browning
896f6179b4 * standalone/test-asmobs-lib.c: new test script (migrated from
tests/asmobs/).
2003-04-07 17:46:38 +00:00
Rob Browning
b1362b02b9 * standalone/test-asmobs: new test script. 2003-04-07 17:46:30 +00:00
Rob Browning
eda9f0e6f3 * standalone/README: new file. 2003-04-07 17:46:11 +00:00
Rob Browning
6405ae86d2 * standalone/Makefile.am: new file. 2003-04-07 17:38:03 +00:00
Rob Browning
0443541a34 * standalone/.cvsignore: new file. 2003-04-07 17:37:53 +00:00
Rob Browning
e6e44ca6b2 * tests/asmobs/asmobs.c: removed (functionality is now in standalone/). 2003-04-07 02:00:36 +00:00
Rob Browning
135af87eda * tests/asmobs/asmobs-test.scm: removed (functionality is now in
standalone/).
2003-04-07 02:00:30 +00:00
Rob Browning
6d10041252 * tests/asmobs/README: removed (functionality is now in standalone/). 2003-04-07 02:00:16 +00:00
Rob Browning
e2a04f55e2 * tests/asmobs/Makefile: removed (functionality is now in standalone/). 2003-04-07 02:00:11 +00:00
Rob Browning
273affe476 *** empty log message *** 2003-04-07 01:58:47 +00:00
Rob Browning
4bf185281a * tests/c-api/strings.c: add a note to the source about this code
being unused.
2003-04-07 01:58:30 +00:00
Marius Vollmer
73be1d9e8e Changed license terms to the plain LGPL thru-out. 2003-04-05 19:15:35 +00:00
Rob Browning
122cf9a5fb *** empty log message *** 2003-03-25 02:21:10 +00:00
Rob Browning
b4690a661e * lib.scm (pass-if): allow really simple tests where the test code
is also the name like (pass-if (even? 2)).
(expect-fail): allow really simple tests where the test code is
also the test name like (expect-fail (even? 2)).
2003-03-25 02:21:03 +00:00
Rob Browning
7c24e52857 * tests/numbers.test: added tests (some simple) for various funcs.
("odd?"): added tests.
("even?"): added tests.
("nan?"): added tests.
("abs"): added tests.
("lcm"): added tests.
("number->string"): added tests.
("number?"): added tests.
("complex?"): added tests.
("real?"): added tests.
("rational?"): added tests.
("integer?"): added tests.
("inexact?"): added tests.
("="): added tests.
("zero?"): added tests.
("positive?"): added tests.
("negative?"): added tests.
2003-03-25 02:20:55 +00:00
Rob Browning
c62fdb8ee0 *** empty log message *** 2003-03-25 02:14:06 +00:00
Marius Vollmer
b80e1b5c9b *** empty log message *** 2003-03-19 18:29:26 +00:00
Marius Vollmer
6c61859f03 ("format basic output"): Added test for "~F" from Matthias Koeppe. 2003-03-19 18:28:52 +00:00
Mikael Djurfeldt
cbbeea6603 * tests/elisp.test: Use module (ice-9 weak-vector).
* tests/weaks.test: Use module (ice-9 weak-vector).
2003-02-19 15:31:30 +00:00
Rob Browning
b2cbe8d8a2 *** empty log message *** 2002-12-09 00:51:53 +00:00
Rob Browning
1844ae316e * tests/version.test: test (effective-version). 2002-12-09 00:42:18 +00:00
Neil Jerram
d2864c8adb New file for tests related to options interface. 2002-11-06 00:38:44 +00:00
Rob Browning
9bc548798d *** empty log message *** 2002-10-05 04:21:04 +00:00
Rob Browning
46f2c0f148 * tests/numbers.test ("expt"): add tests. 2002-10-05 04:12:23 +00:00
Marius Vollmer
6b61da182e *** empty log message *** 2002-09-09 20:59:43 +00:00
Marius Vollmer
d9f352d468 (dist-hook): Do not distribute CVS directories. Thanks to Greg
Troxel!
2002-09-09 20:58:26 +00:00
Han-Wen Nienhuys
ba1b222692 * tests/reader.test: change misc-error in read-error.
* read.c (scm_input_error): new function: give meaningful error
messages, and throw read-error

* gc-malloc.c (scm_calloc): add scm_calloc.

* scheme-memory.texi (Memory Blocks): add scm_calloc, scm_gc_calloc.
correct typos.
2002-08-05 23:04:44 +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
Marius Vollmer
1ee34062aa *** empty log message *** 2002-05-07 18:11:05 +00:00
Marius Vollmer
cdf52e3dce (/): Expect divison by an inexact zero to yield +inf.0. 2002-05-07 18:10:59 +00:00
Marius Vollmer
2a7461f5ed *** empty log message *** 2002-05-06 19:32:30 +00:00
Marius Vollmer
0a77048bfd (regexp-substitute/global): Do not test with empty regexp. Empty
regexps do not work on NetBSD.
2002-05-06 19:32:20 +00:00
Marius Vollmer
45845efeb3 *** empty log message *** 2002-05-06 18:52:50 +00:00
Marius Vollmer
0b1b772f29 (basic syncase macro): Added. 2002-05-06 18:52:01 +00:00
Marius Vollmer
54d4ac1f44 *** empty log message *** 2002-04-26 18:35:42 +00:00
Marius Vollmer
d26d290311 (string-tokenize): Updated for fixed semantics. 2002-04-26 18:35:34 +00:00
Marius Vollmer
3c540af468 (SCM_TESTS_DIRS, dist-hook): New, distribute directories manually. 2002-04-17 17:45:05 +00:00