aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2017 Ludovic Courtès <ludo@gnu.org>
;;;
;;; 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 <http://www.gnu.org/licenses/>.

(define-module (test-base16)
  #:use-module (guix base16)
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-64)
  #:use-module (rnrs bytevectors))

(test-begin "base16")

(test-assert "bytevector->base16-string->bytevector"
  (every (lambda (bv)
           (equal? (base16-string->bytevector
                    (bytevector->base16-string bv))
                   bv))
         (map string->utf8 '("" "f" "fo" "foo" "foob" "fooba" "foobar"))))

(test-end "base16")
vail'>...Nicolas Goaziou 2024-01-17gnu: Add tgif....spacecadet 2024-01-03gnu: grim: Fix cross-compiling....Zheng Junjie 2024-01-03gnu: grim: Update to 1.4.1....Zheng Junjie 2024-01-03gnu: slurp: Update to 1.5.0....Zheng Junjie 2024-01-03gnu: slurp: Fix cross-compiling....Zheng Junjie 2023-12-29gnu: libmng: Fix cross-compiling to riscv64-linux....Zheng Junjie 2023-12-22gnu: jpegoptim: Update to 1.5.5....Zheng Junjie 2023-12-18gnu: freeimage: Patch 2 CVEs....Efraim Flashner 2023-10-20gnu: exiv2: Get rid of reference to GCC....宋文武 2023-10-13gnu: converseen: Update to 0.11.0.0....Nicolas Goaziou 2023-09-24gnu: imgp: Update to 2.9....Tobias Geerinckx-Rice 2023-09-14gnu: libwebp: Replace with 1.3.2. [fixes CVE-2023-4863]...Julien Lepiller 2023-09-11gnu: Add picket....Sergio Pastor Pérez 2023-09-11gnu: Add mini....Sergio Pastor Pérez 2023-08-16gnu: libwebp: Replace with 1.3.1. [fixes CVE-2023-1999]...Hilton Chain 2023-08-15gnu: mypaint: Build with librsvg-for-system....Efraim Flashner 2023-07-16gnu: gifsicle: Update to 1.94....Tobias Geerinckx-Rice 2023-06-19gnu: libjxl: Update to 0.8.2....Vinicius Monego 2023-06-14gnu: Add pngcheck....Artyom V. Poptsov