aboutsummaryrefslogtreecommitdiff
path: root/tests/base16.scm
blob: a64b650bec4f566abb79b5b3e39de59ef6d053e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
;;; 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")
kages: Define 'this-package' and 'this-origin'.Ludovic Courtès 2019-03-28gnu: googletest: Don't use unstable tarball.Efraim Flashner 2019-03-26packages: Adjust to new calling convention for "thunked" fields.Ludovic Courtès 2019-02-24gnu: gwenhywfar, aqbanking: Use HTTPS home page.Tobias Geerinckx-Rice 2019-01-23gnu: gnucash-docs: Fix source URI.Maxim Cournoyer 2019-01-23gnu: gnucash: Add information about how to use the documentation.Maxim Cournoyer 2019-01-23gnu: gnucash: Update to 3.4.Maxim Cournoyer 2019-01-23gnu: gnucash: Disable the stress-options-test using a phase.Maxim Cournoyer 2019-01-23gnu: gnucash: Convert price-quotes-perl patch to a phase.Maxim Cournoyer 2019-01-23gnu: gnucash: Fix indentation.Maxim Cournoyer 2019-01-02gnu: gnucash: Fix test failure.Maxim Cournoyer 2018-10-05gnu: gnucash-docs: Update to 3.3.Kei Kebreau 2018-10-05gnu: gnucash: Update to 3.3.Kei Kebreau 2018-04-13gnu: gnucash: Update to 3.0.Ricardo Wurmus 2018-04-13gnu: aqbanking: Update to 5.7.8.Ricardo Wurmus 2018-04-13gnu: gwenhywfar: Update to 4.20.0.Ricardo Wurmus 2018-01-09gnu: gnucash: Update to 2.6.19.Kei Kebreau 2017-11-15gnu: gnucash: Use HTTPS for www.gnucash.org.Tobias Geerinckx-Rice 2017-11-15gnu: gnucash: Update to 2.6.18.Tobias Geerinckx-Rice 2017-10-13gnu: Add GnuCash documentation.Chris Marusich 2017-08-06gnu: gnucash: Update to 2.6.17.Vasile Dumitrascu 2017-04-10gnu: gnucash: Update to 2.6.16.Leo Famulari 2017-01-17gnu: gnucash: Update to 2.6.15.Ricardo Wurmus 2017-01-13gnu: aqbanking: Update source hash.John Darrington 2017-01-09gnu: Update aqbanking to version 5.6.12.John Darrington 2017-01-09gnu: Simplify the downloads from http://www.aquamaniac.deJohn Darrington 2016-10-05gnu: gnucash: Update to 2.6.14.Efraim Flashner 2016-07-21gnu: Update URLs for sourceforge.net.Leo Famulari