marionette: Delay synchronization with the host's REPL.
[guix.git] / tests / import-utils.scm
blob8d44b9e0e293f02ec6775e1402e41eec59731e14
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
4 ;;;
5 ;;; This file is part of GNU Guix.
6 ;;;
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
11 ;;;
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ;;; GNU General Public License for more details.
16 ;;;
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
20 (define-module (test-import-utils)
21   #:use-module (guix tests)
22   #:use-module (guix import utils)
23   #:use-module ((guix licenses) #:prefix license:)
24   #:use-module (srfi srfi-64))
26 (test-begin "import-utils")
28 (test-equal "beautify-description: use double spacing"
29   "This is a package.  It is great.  Trust me Mr.  Hendrix."
30   (beautify-description
31    "This is a package. It is great. Trust me Mr. Hendrix."))
33 (test-equal "beautify-description: transform fragment into sentence"
34   "This package provides a function to establish world peace"
35   (beautify-description "A function to establish world peace"))
37 (test-equal "license->symbol"
38   'license:lgpl2.0
39   (license->symbol license:lgpl2.0))
41 (test-end "import-utils")