1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 20:30:28 +02:00
Commit graph

1731 commits

Author SHA1 Message Date
Kevin Ryde
501da40398 (max, min): Add tests involving NaNs. 2003-05-30 00:24:33 +00:00
Stefan Jahn
2e945bccca 2003-05-29 Stefan Jahn <stefan@lkcc.org>
* configure.in: Removed -lm check and added a cached check for
        __libc_stack_end to get it building for mingw32 hosts.

2003-05-29  Stefan Jahn  <stefan@lkcc.org>

        * win32-dirent.c: Use malloc() instead of scm_malloc().

        * stime.c (s_scm_strftime): Add a type cast to avoid compiler
        warning.

        * posix.c (s_scm_putenv): Disable use of unsetenv() for the
        mingw32 build.

        * modules.c (s_scm_module_import_interface): Renamed local
        variable interface to _interface.  Seems like 'interface'
        is a special compiler directive for the mingw32 compiler.

        * mkstemp.c: Provide prototype to avoid compiler warning.

        * load.c (s_scm_search_path): Fixed absolute and relative
        path detections for native Windows platforms.

        * gc.h, threads.h: Export some more symbols using SCM_API
	(necessary to build on mingw32).

        * gc-freelist.c ("s_scm_map_free_list",
        "s_scm_gc_set_debug_check_freelist_x"): Fixed use of FUNC_NAME.

        * fports.c (fport_fill_input): Disable use of
        fport_wait_for_input() on Win32 platforms.

        * filesys.c (s_scm_basename): Fixed __MINGW32__ code.

        * Makefile.am: Modified some rules for cross compiling.

2003-05-29  Stefan Jahn  <stefan@lkcc.org>

        * raw-ltdl.c: Some more modifications for mingw32 platforms.

2003-05-29  Stefan Jahn  <stefan@lkcc.org>

        * Makefile.am (libguile_srfi_srfi_1_la_LDFLAGS,
        libguile_srfi_srfi_4_la_LDFLAGS,
        libguile_srfi_srfi_13_14__la_LDFLAGS): Added the -no-undefined
        option for the mingw32 build.

2003-05-29  Stefan Jahn  <stefan@lkcc.org>

        * standalone/Makefile.am: Setup to build on mingw32.
2003-05-29 14:39:13 +00:00
Dirk Herrmann
42ad901d04 * benchmark-suite/lib.scm: Fix some typos in the documentation.
* doc/ref/scheme-compound.texi: Clarified that vectors need to
       be quoted.

       * doc/tutorial/guile-tut.texi: Fix example, where a vector
       constant is used without quoting.

       * ice-9/boot-9.scm (make-autoload-interface): Added missing
       quote around vector constant.

       * test-suite/tests/elisp.test: Added missing quote around vector
       constants.
2003-05-27 18:33:19 +00:00
Dirk Herrmann
ddd8f927d8 * libguile/eval.c (SCM_CEVAL): In case of an application, all checks
for a proper function object and the correct number of arguments are
	now performed in the application part of SCM_CEVAL.

	(scm_badformalsp):  Removed.

	* test-suite/tests/r5rs_pitfall.test: Test 2.1 now passes.
2003-05-25 07:50:23 +00:00
Kevin Ryde
59e4263131 *** empty log message *** 2003-05-12 23:52:53 +00:00
Kevin Ryde
adda36ed70 (=, <, max, min): Add tests of bignum/inf combinations. 2003-05-12 23:52:17 +00:00
Kevin Ryde
8ec84fe54e (delete, delete!): Test predicate call arg order. 2003-05-12 23:05:50 +00:00
Kevin Ryde
4f3deff49a *** empty log message *** 2003-05-10 00:23:50 +00:00
Kevin Ryde
db386f80d1 (gcd): Exercise bignum/inum with a bignum not
fitting a ulong.
2003-05-10 00:23:00 +00:00
Kevin Ryde
a04a3604c2 (integer-length): Exercise some negatives, in
particular -2^n which is ...11100..00.
2003-05-10 00:10:40 +00:00
Kevin Ryde
2cfcaed525 (=, <): Add tests involving NaNs. 2003-05-10 00:07:34 +00:00
Kevin Ryde
9c8721b55e *** empty log message *** 2003-05-09 22:43:00 +00:00
Kevin Ryde
d31350ff35 * tests/srfi-1.test: New file, exercising take and drop.
* Makefile.am (SCM_TESTS): Add it.
2003-05-09 22:42:00 +00:00
Kevin Ryde
91e7199ff0 New file, exercising take and drop. 2003-05-09 22:41:06 +00:00
Kevin Ryde
d963e93f3b *** empty log message *** 2003-05-06 00:37:57 +00:00
Kevin Ryde
300c6a76b3 (logcount): New tests, exercising some negatives. 2003-05-05 23:04:02 +00:00
Kevin Ryde
072e6de2ed (-): Add test for negative inum subtract bignum. 2003-05-05 22:59:03 +00:00
Marius Vollmer
1b965c29e7 *** empty log message *** 2003-05-03 20:24:37 +00:00
Marius Vollmer
2e5b157d80 New. Thanks to Dale P. Smith for pointing us to these tests. 2003-05-03 19:58:55 +00:00
Neil Jerram
a1a5dfa888 SRFI 34 2003-04-30 00:06:33 +00:00
Dirk Herrmann
4dce3c9645 * tests/syntax.test: Modified some tests to use eval when
providing bad syntax.  Otherwise, the memoizer will report an
	error immediately after reading the form, without even the chance
	to get the pass-if-exception mechanism started.
2003-04-23 19:04:00 +00:00
Dirk Herrmann
9247b5bca6 * tests/guardians.test: Added some more elaborate and
sophisticated tests for the guardian functionality.
2003-04-23 18:47:54 +00:00
Dirk Herrmann
d339981a5a * test-suite/tests/sort.test: Added. Both tests in that file did
fail (one even with a segfault) with CVS guile before the recent
	changes to libguile/sort.c.

	* libguile/sort.c: Replaced hand-made trampline code by the new
	official mechanism from eval.c.  This fixes a segfault in the new
	test file test-suite/tests/sort.test.

	(quicksort, compare_function, scm_restricted_vector_sort_x,
	scm_sorted_p, scm_merge, scm_merge_list_x, scm_merge_x,
	scm_merge_list_step, scm_sort_x, scm_sort, scm_merge_vector_x,
	scm_merge_vector_step, scm_stable_sort_x, scm_stable_sort,
	scm_sort_list_x, scm_sort_list): Use trampoline mechanism from
	eval.c.

	(subr2less, lsubrless, closureless, applyless, scm_cmp_function,
	cmp_fun_t): Removed.

	(compare_function): Added.

	* libguile/sort.c (quicksort, SWAP, stack_node): Replaced pointer
	arithmetics with index arithmetics.  Changed quicksort to work on
	an array of SCM values instead of an array of characters.  Avoid
	bytewise copying of SCM elements.  Avoid allocating memory on the
	stack with alloca.  Fixed some comments.
2003-04-22 23:32:40 +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
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