;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 Nikita Karetnikov ;;; ;;; 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-base64) #:use-module (guix base64) #:use-module (rnrs bytevectors) #:use-module (srfi srfi-64)) (define (string->base64 str) (base64-encode (string->utf8 str))) ;;; Test vectors from . (test-begin "base64") (test-equal "empty string" (string->base64 "") "") (test-equal "f" (string->base64 "f") "Zg==") (test-equal "fo" (string->base64 "fo") "Zm8=") (test-equal "foo" (string->base64 "foo") "Zm9v") (test-equal "foob" (string->base64 "foob") "Zm9vYg==") (test-equal "fooba" (string->base64 "fooba") "Zm9vYmE=") (test-equal "foobar" (string->base64 "foobar") "Zm9vYmFy") (test-end "base64")db553bed324149bc039c306a804a2a3'>commitdiff
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2020-01-18 21:16:26 +0100
committerMarius Bakke <mbakke@fastmail.com>2020-01-22 22:12:33 +0100
commit26edcd9b8db553bed324149bc039c306a804a2a3 (patch)
tree638c43c0651a19141a4d04e839de0f4d3d06b49b /gnu/packages/video.scm
parentf5fa1a77c76376d2cfe5af13578bb74b2f2a67af (diff)
downloadguix-26edcd9b8db553bed324149bc039c306a804a2a3.tar.gz
guix-26edcd9b8db553bed324149bc039c306a804a2a3.zip
gnu: RHash: Download tarball from SourceForge instead of a git checkout.
* gnu/packages/crypto.scm (rhash)[source]: Change to URL-FETCH.
Diffstat (limited to 'gnu/packages/video.scm')
0 files changed, 0 insertions, 0 deletions