File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 2025-09-09 Shiro Kawai <shiro@acm.org>
2+
3+ * lib/srfi/217.scm (iset-closed-interval): Fix missing boundary check
4+ https://github.com/shirok/Gauche/issues/1166
5+
162025-09-06 Shiro Kawai <shiro@acm.org>
27
38 * libsrc/gauche/collection.scm (group-by-size, group-by-size-to):
Original file line number Diff line number Diff line change 651651 [g (x->generator tmap)])
652652 (let loop ()
653653 (match (g)
654+ [(? eof-object?) (%make-iset #f rmap)]
654655 [(s . e)
655656 (cond
656657 [(< e lo) (loop)] ; non overwrapping
Original file line number Diff line number Diff line change 30823082 '(0 1 2 5 6 7)
30833083 '(-1 0 1 2 3 4 5 6 7 8))
30843084 )
3085+
3086+ ;; https://github.com/shirok/Gauche/issues/1166
3087+ (test* "iset-closed-interval corner case" '(1)
3088+ (iset->list (iset-closed-interval (iset 1) 1 2)))
3089+ (test* "iset-closed-interval corner case" '(2 3 5 6 7)
3090+ (iset->list (iset-closed-interval (iset 1 2 3 5 6 7) 2 10)))
30853091 )
30863092
30873093;; -----------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments