On Mon, Jun 29, 2020 at 9:39 PM Arthur A. Gleckler <xxxxxx@speechcode.com> wrote: > > On Mon, Jun 29, 2020 at 2:13 AM Duy Nguyen <xxxxxx@gmail.com> wrote: > >> >> Looks good. I did something like that when adapting the tests for >> Gauche (except that I did "(eqv? #f (string-.." which is not as good >> as "(not (string-..."). > > > But would you mind investigating why it doesn't work on Chibi despite my patch? It still works on Larceny, but I don't want to ask Will until it works on Chibi, which enforces the types. I suppose it's this error? > (define ABC "abc") > (string-cursor->index ABC (string-cursor-next ABC 0)) ERROR in "string-cursor->index": invalid type, expected String-Cursor: 1 The "1" is from this > (string-cursor-next ABC 0) 1 I think chibi does not follow the srfi here. The document for string-cursor->index says " If the argument is already an index/cursor, it is returned unchanged. ". So chibi should accept "1" and return it. But it throws an error instead. -- Duy