Ludovic Courtès
89fc8adea3
Add test case to make sure `read' returns mutable strings.
...
* test-suite/tests/reader.test ("reading")["returned strings are
mutable"]: New test, as reported by szgyg <szgyg@ludens.elte.hu>.
2008-10-09 23:24:07 +02:00
Ludovic Courtès
4b600701b9
Revert "Make literal strings (i.e., returned by `read') read-only."
...
This reverts commit be5c4a82ab
.
The rationale is that `read' must return mutable strings, as reported
by szgyg <szgyg@ludens.elte.hu>.
2008-10-09 23:23:27 +02:00
Ludovic Courtès
097158c936
Enclose `regexp.test' in a module.
...
* test-suite/tests/regexp.test: Add `define-module' clause.
2008-09-25 21:37:21 +02:00
Ludovic Courtès
afb28ce860
Fix handling of the FLAGS argument in `fold-matches'.
...
* ice-9/regex.scm (fold-matches): If FLAGS is non-null, use
`(car flags)', not `flags'.
* test-suite/tests/regexp.test ("fold-matches"): New test prefix.
* NEWS: Update.
2008-09-25 21:37:18 +02:00
Ludovic Courtès
be5c4a82ab
Make literal strings (i.e., returned by `read') read-only.
...
* libguile/read.c (scm_read_string): Use `scm_i_make_read_only_string ()' to
return a read-only string, as mandated by R5RS. Reported by Bill
Schottstaedt <bil@ccrma.Stanford.EDU>.
* libguile/strings.c (scm_i_make_read_only_string): New function.
(scm_i_shared_substring_read_only): Special-case the empty string
so that the read-only and read-write empty strings are `eq?'. This
optimization is relied on by the `substring/shared' `empty string'
test case in `srfi-13.test'.
* libguile/strings.h (scm_i_make_read_only_string): New declaration.
* test-suite/tests/strings.test ("string-set!")["literal string"]: New test.
* NEWS: Update.
2008-09-23 18:39:18 +02:00
Ludovic Courtès
40de0323e7
Make `symbol->string' return a read-only string.
...
* libguile/strings.c (scm_i_symbol_substring): Return a read-only string
since R5RS requires `symbol->string' to return a read-only string.
Reported by Bill Schottstaedt <bil@ccrma.Stanford.EDU>.
* test-suite/tests/symbols.test: Add `define-module' clause.
(exception:immutable-string): Adjust to current exception.
("symbol->string")["result is an immutable string"]: Use
`pass-if-exception' instead of `expect-fail-exception'.
* NEWS: Update.
2008-09-23 18:39:10 +02:00
Neil Jerram
0bf4fe19a6
Fix for incorrect (gcd -2) => -2; should give 2.
...
(reported by Bill Schottstaedt)
* libguile/numbers.c (scm_gcd): When only one arg given, use scm_abs
to ensure that result is non-negative.
* test-suite/tests/numbers.test ("gcd"): New test, (gcd -2).
2008-09-22 21:18:01 +01:00
Ludovic Courtès
f4833b3906
Add test case for the GOOPS `class-redefinition' memory corruption.
2008-08-20 00:46:57 +02:00
Ludovic Courtès
5338352e56
Fix type-checking of SRFI-1 `partition'.
2008-04-28 18:03:41 +02:00
Ludovic Courtès
23978ff30a
Make (srfi srfi-35)' visible through
cond-expand'.
2008-04-26 21:25:51 +02:00
Ludovic Courtès
efbc70de56
Add `(srfi srfi-88)'.
2008-04-26 21:25:32 +02:00
Ludovic Courtès
75946eddfc
Add support for SRFI-88-like postfix keyword read syntax.
2008-04-15 20:00:32 +02:00
Ludovic Courtès
b337315785
Test the interaction of GOOPS objects with `struct-{ref,set!}'.
2008-04-13 20:41:39 +02:00
Ludovic Courtès
792ebd5dc4
Honor $TMPDIR in the test suite.
2008-03-13 13:56:43 +00:00
Ludovic Courtès
c89ae78ba6
Fix SRFI-37 `args-fold' with short option names of argument-less options.
2008-03-12 16:57:36 +00:00
Neil Jerram
5826bf6572
Release stuff: missing NEWS and 2007/2008 copyrights.
2008-02-15 22:37:52 +00:00
Ludovic Courtès
ffa88bdd5d
Add hack for `gc.test' on SPARC GNU/Linux.
2008-02-15 15:59:34 +00:00
Neil Jerram
1978dd74b8
* hashtab.c (scm_hash_fn_create_handle_x): If supplied assoc_fn
...
returns neither a pair nor #f, signal a wrong-type-arg error.
(Thanks to Gregory Marton for reporting this.)
* tests/hash.test: New "hashx" test supplied by Gregory Marton;
prior to today's fix in libguile/hashtab.c, this caused a
segmentation fault.
2008-01-18 23:40:49 +00:00
Ludovic Courtès
7c680febe5
Changes from arch/CVS synchronization
2007-12-13 12:32:02 +00:00
Ludovic Courtès
2bfaaa3ab7
Add missing SRFI-69 files.
2007-12-13 12:29:26 +00:00
Neil Jerram
6f640c9f22
* tests/eval.test (promises)[unmemoizing a promise]: New test.
...
* tests/continuations.test ("continuations"): Use
with-debugging-evaluator.
* standalone/test-use-srfi: Use -q to avoid picking up the user's
~/.guile file
* lib.scm (with-debugging-evaluator*, with-debugging-evaluator):
New utilities.
2007-10-19 22:07:31 +00:00
Ludovic Courtès
dfdb8448a9
Changes from arch/CVS synchronization
2007-10-17 22:16:44 +00:00
Ludovic Courtès
dbb47af4a6
Changes from arch/CVS synchronization
2007-09-03 17:04:49 +00:00
Ludovic Courtès
5da403801c
Changes from arch/CVS synchronization
2007-08-23 21:30:54 +00:00
Kevin Ryde
bea9797a5c
(port-for-each): New test for passing freed cell,
...
marked as unresolved since problem not yet fixed.
2007-08-23 00:00:45 +00:00
Ludovic Courtès
8482254ff1
Changes from arch/CVS synchronization
2007-08-11 10:48:28 +00:00
Ludovic Courtès
468a7976d2
Added SRFI-35 files.
2007-08-11 10:22:35 +00:00
Ludovic Courtès
932bd3abce
Changes from arch/CVS synchronization
2007-08-08 15:04:30 +00:00
Ludovic Courtès
2b86affe0b
Changes from arch/CVS synchronization
2007-07-24 23:33:39 +00:00
Ludovic Courtès
817de81ca1
Added new SRFI-37 files.
2007-07-18 21:39:24 +00:00
Ludovic Courtès
8d1701ee9f
Changes from arch/CVS synchronization
2007-07-18 21:37:45 +00:00
Ludovic Courtès
48e2c94ba2
Changes from arch/CVS synchronization
2007-07-10 22:39:36 +00:00
Ludovic Courtès
91bb190dd7
Revision: lcourtes@laas.fr--2006-libre/guile-core--cvs--1.8--patch-27
...
Creator: Ludovic Courtes <ludovic.courtes@laas.fr>
Merged small SRFI-19 fixes.
Patches applied:
* lcourtes@laas.fr--2006-libre/guile-core--cvs-head--0 (patch 68-69)
- SRFI-19: Fixed `date->julian-day' bug (reported by Jon Wilson).
- Updated ChangeLogs wrt. previous patch.
2007-07-09 16:49:43 +00:00
Ludovic Courtès
fe76611522
Changes from arch/CVS synchronization
2007-06-25 22:36:43 +00:00
Ludovic Courtès
a944fd0f81
Changes from arch/CVS synchronization
2007-06-13 22:20:39 +00:00
Ludovic Courtès
5b0c950458
Changes from arch/CVS synchronization
2007-06-12 22:09:38 +00:00
Ludovic Courtès
3b58a13b8b
Changes from arch/CVS synchronization
2007-06-07 08:44:27 +00:00
Ludovic Courtès
fa7e72a356
Changes from arch/CVS synchronization
2007-05-09 21:08:44 +00:00
Kevin Ryde
af6bafa040
correction to copyright year (2007 is for the FSF)
2007-03-07 22:59:20 +00:00
Kevin Ryde
08ea3794d2
(make-struct): Exercise the error check on tail
...
array size != 0 when layout spec doesn't have tail array.
(make-vtable): Exercise this.
2007-03-07 22:14:46 +00:00
Kevin Ryde
5e5d86d8de
(make-struct): New test of type check on a "u"
...
field, which had been causing an abort().
2007-02-22 00:08:34 +00:00
Kevin Ryde
144e6ab5ca
(port-line): Check not truncated to "int" on 64-bit systems.
2007-01-27 00:07:09 +00:00
Kevin Ryde
d27ae588db
(stable-sort): New test, exercising empty list
...
input. As reported by Ales Hvezda.
2007-01-24 23:07:51 +00:00
Kevin Ryde
4faeed31c8
(gmtime in another thread): Catch #t all errors from
...
gmtime in the thread, since it can be a system error not a scheme
out-of-range on 64-bit systems.
2007-01-24 22:01:57 +00:00
Ludovic Courtès
09c9ec0533
Changes from arch/CVS synchronization
2007-01-19 09:11:43 +00:00
Kevin Ryde
7f2ee4635e
(regexp-exec): Further tests, in particular #\nul
...
in input and bad flags args which had been provoking abort()s.
2007-01-15 21:46:41 +00:00
Kevin Ryde
0202ead8ed
(*): Exercise multiply by exact 0 giving exact 0.
2006-12-12 22:46:33 +00:00
Kevin Ryde
7f6a4429dc
(car): Check procedure-name property.
2006-12-12 22:34:16 +00:00
Kevin Ryde
ab9b209eb8
Exercise top-level define setting procedure-name.
2006-12-12 22:20:40 +00:00
Ludovic Courtès
2ef21bf169
Changes from arch/CVS synchronization
2006-12-12 14:09:08 +00:00