;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015 Ludovic Courtès ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (test-sets) #:use-module (guix sets) #:use-module (srfi srfi-1) #:use-module (srfi srfi-26) #:use-module (srfi srfi-64)) (test-begin "sets") (test-assert "set-contains?" (let* ((lst (iota 123)) (set (list->set lst))) (and (every (cut set-contains? set <>) lst) (not (set-contains? set -1))))) (test-assert "set->list" (let* ((lst (iota 123)) (set (list->set lst))) (lset= = lst (set->list set)))) (test-assert "set-union" (let* ((a (list 'a)) (b (list 'b)) (s1 (setq a)) (s2 (setq b)) (s3 (set-union s1 s2))) (and (set-contains? s3 a) (set-contains? s3 b)))) (test-end) 6'>commitdiff
AgeCommit message (Expand)Author
2024-06-11gnu: wally-cli: Fix build....Sharlatan Hellseher
2024-06-11gnu: wally-cli: Fix reference to go-gopkg-in-cheggaaa-pb-v1....Christopher Baines
2024-05-31gnu: avrdude: Update to 7.3....Artyom V. Poptsov
2024-05-17gnu: 0xffff: Update to 0.10....Artyom V. Poptsov
2024-03-29gnu: packages: flashing-tools: Sort use-module alphabetically....Sharlatan Hellseher
2024-03-29gnu: Add wally-cli....Martin Becze
2023-11-24gnu: uuu: Update to 1.5.125....Mathieu Othacehe
2023-10-10gnu: Add teensy-udev-rules....Maxim Cournoyer
2023-10-10gnu: teensy-loader-cli: Fix license....Maxim Cournoyer
2023-10-10gnu: teensy-loader-cli: Use gexps....Maxim Cournoyer
2023-09-27gnu: Add qdl....B. Wilson
2023-09-02gnu: teesy-loader-cli: Drop trailing #t....Maxim Cournoyer
2023-07-16gnu: srecord: Update to 1.65.0....Tobias Geerinckx-Rice
2023-06-08gnu: flashrom: Wrap PATH to find dmidecode....Hilton Chain
2023-06-08gnu: flashrom: Update to 1.3.0....Hilton Chain