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

2614 commits

Author SHA1 Message Date
Marius Vollmer
3d5ebfa95c *** empty log message *** 2004-05-10 20:43:00 +00:00
Marius Vollmer
d39a7b5881 (number->string): Added tests for non-radix-10 floating point
conversions.
2004-05-10 20:41:54 +00:00
Marius Vollmer
ed9f718f63 Added test-round. 2004-05-10 20:36:27 +00:00
Kevin Ryde
d12a658091 *** empty log message *** 2004-05-09 22:54:06 +00:00
Kevin Ryde
abff733bd7 (logbit?): New tests. 2004-05-09 22:53:24 +00:00
Kevin Ryde
1dccbf7f5f *** empty log message *** 2004-05-09 00:54:57 +00:00
Kevin Ryde
fc894caf84 *** empty log message *** 2004-05-09 00:50:30 +00:00
Kevin Ryde
957f3c2b6c (test-dst, string->date local DST): Test with
"EST5EDT" instead of "CET", since HP-UX doesn't know CET.
2004-05-09 00:49:25 +00:00
Kevin Ryde
b551c697dd *** empty log message *** 2004-05-02 23:09:37 +00:00
Kevin Ryde
feb3640d87 (strftime): Force tm:isdst to 0 for the test, for
the benefit of HP-UX.  Reported by Andreas Vögele.
Use set-tm:zone rather than a hard coded vector offset.
2004-05-02 23:08:58 +00:00
Dirk Herrmann
e68ef9c82b * tests/elisp.test: Wrap tests in module (test-suite
test-<file-name without .test>), following a practice that was
	used on a couple of files already.
2004-04-29 20:44:52 +00:00
Kevin Ryde
dfa6017ebe *** empty log message *** 2004-04-27 23:35:56 +00:00
Kevin Ryde
b313d73a19 (test_long_long): Exercise
out-of-range errors on various cases.
(test_ulong_long): New function, split from test_long_long and
similarly exercising out-of-range.
2004-04-27 23:19:35 +00:00
Dirk Herrmann
36245b66c2 * libguile/eval.c (s_macro_keyword): New static identifier.
(scm_m_define): Change order to first create binding and
	evaluating the expression afterwards.

	(scm_m_set_x): Memoize complete set! expression.  Only leave
	symbols if no binding exists at memoization time.  Throw error if
	assigning to a syntactic keyword.

	(lazy_memoize_variable): New function.

	(CEVAL): When execution set!, perform lazy memoization if
	unmemoized symbol is detected.

	* libguile/modules.c (module_variable): Return variables with
	unbound value.

	* libguile/tags.h: Fix comment.

	* test-suite/tests/syntax.test: Add test case to check the correct
	handling of define expressions.
2004-04-26 19:59:03 +00:00
Kevin Ryde
cff55508f9 *** empty log message *** 2004-04-24 21:18:30 +00:00
Kevin Ryde
32938e4dec * tests/socket.test: New file.
* Makefile.am (SCM_TESTS): Add it.
2004-04-24 21:17:13 +00:00
Kevin Ryde
4064ed2ab5 New file. 2004-04-24 21:13:16 +00:00
Kevin Ryde
7301de799a *** empty log message *** 2004-04-23 21:20:17 +00:00
Kevin Ryde
cd858a314c * tests/srfi-11.test: New file.
* Makefile.am (SCM_TESTS): Add it.
2004-04-23 21:19:26 +00:00
Kevin Ryde
42b4fcb48d New file. 2004-04-23 21:17:34 +00:00
Kevin Ryde
10cc8b0197 *** empty log message *** 2004-04-22 00:01:48 +00:00
Kevin Ryde
be4381fade * standalone/test-round.c: New file, exercising scm_round.
* standalone/Makefile.am: Add it.
2004-04-21 23:59:04 +00:00
Kevin Ryde
370b8399a8 New file, exercising scm_round. 2004-04-21 23:53:23 +00:00
Kevin Ryde
c9cdd3966e *** empty log message *** 2004-04-15 00:53:30 +00:00
Kevin Ryde
7f703e0d21 (min): Correction, test "documented? min" not "documented? max". 2004-04-15 00:52:48 +00:00
Kevin Ryde
2530518ea9 (max, min): Exercise some inum/frac, frac/inum,
big/frac, frac/big and frac/frac cases.
2004-04-15 00:50:49 +00:00
Kevin Ryde
57f6654745 *** empty log message *** 2004-04-06 00:08:18 +00:00
Kevin Ryde
ad22fe7cf8 (quotient, remainder): Exercise inum/big at and
near special case inum == fixnum-min, big == -fixnum-min.
2004-04-05 23:05:37 +00:00
Kevin Ryde
d6628681cd *** empty log message *** 2004-03-25 21:49:28 +00:00
Kevin Ryde
24360e11b0 2004-03-26 Eric Hanchrow <offby1@blarg.net>
* tests/numbers.test (modulo-expt): New tests.
2004-03-25 21:46:35 +00:00
Kevin Ryde
23d77957a4 (min, max): Check inexactness of big/real and
real/big combinations, collect up tests under arg types for clarity.
2004-03-25 21:45:11 +00:00
Dirk Herrmann
62360b8975 * libguile/eval.c: Separated some definitions relevant for execution
from the memoization part of the file.

	(copy_tree): New static function

	(scm_copy_tree): Rewritten to fix two kinds or bugs: First, cyclic
	structures are detected now and will lead to an exception instead
	of forcing guile to run in an endless loop, using up all the
	system's memory.  Second, arrays in the cdr of an improper list
	are now copied.  See the new test cases in eval.test.

	* test-suite/tests/eval.test: Added tests which reflect the recent
	fixes to copy-tree.
2004-03-24 01:21:50 +00:00
Kevin Ryde
b3ffe4d491 *** empty log message *** 2004-02-28 23:22:12 +00:00
Kevin Ryde
c2d31141dc (execl, execlp, execle): Exercise errors where
program not found.  [But disabled, due to problems with threading.]
2004-02-28 23:07:56 +00:00
Kevin Ryde
2a61284af5 *** empty log message *** 2004-02-28 21:38:37 +00:00
Kevin Ryde
32bb5bd88c (execl, execlp, execle): Exercise errors where program not found. 2004-02-28 21:37:41 +00:00
Kevin Ryde
9593c679b9 *** empty log message *** 2004-02-21 22:04:42 +00:00
Kevin Ryde
593a4c2f90 (max, min): Exercise some complex num cases. 2004-02-21 22:03:57 +00:00
Marius Vollmer
8cad6491e6 *** empty log message *** 2004-02-18 19:29:40 +00:00
Marius Vollmer
6140be99ba Added copyright notice of Michael Stoll, who probably wrote the
original CLISP code.
2004-02-18 19:29:16 +00:00
Kevin Ryde
ef861eadba *** empty log message *** 2004-02-18 00:30:37 +00:00
Kevin Ryde
2a8b5e045f (=): Exercise frac+real and frac+complex. 2004-02-18 00:29:16 +00:00
Kevin Ryde
26bdd45f08 Remove 1/3 == 1.0/3.0, not true. 2004-02-18 00:28:41 +00:00
Kevin Ryde
afe199fe64 *** empty log message *** 2004-02-17 23:27:27 +00:00
Marius Vollmer
17f732e6fa *** empty log message *** 2004-02-17 21:39:21 +00:00
Marius Vollmer
7b93c2e5b1 (SCM_TESTS): Added test/fractions.test. 2004-02-17 21:39:10 +00:00
Marius Vollmer
581e4579de Added GPL terms. 2004-02-17 21:37:47 +00:00
Marius Vollmer
3f12a4ec05 Added LGPL terms. 2004-02-17 21:18:53 +00:00
Kevin Ryde
d2866d6e2f (array?, array-fill!, array-prototype): Add tests. 2004-02-12 00:23:42 +00:00
Marius Vollmer
8834dd6fae *** empty log message *** 2004-01-23 21:14:24 +00:00