3 MES=${MES-$(dirname $0)/../scripts/mes}
4 echo ' ()' | cat $(dirname $0)/../module/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
11 ;;; Mes --- Maxwell Equations of Software
12 ;;; Copyright © 2016,2017 Jan Nieuwenhuizen <janneke@gnu.org>
14 ;;; This file is part of Mes.
16 ;;; Mes is free software; you can redistribute it and/or modify it
17 ;;; under the terms of the GNU General Public License as published by
18 ;;; the Free Software Foundation; either version 3 of the License, or (at
19 ;;; your option) any later version.
21 ;;; Mes is distributed in the hope that it will be useful, but
22 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ;;; GNU General Public License for more details.
26 ;;; You should have received a copy of the GNU General Public License
27 ;;; along with Mes. If not, see <http://www.gnu.org/licenses/>.
29 (mes-use-module (srfi srfi-13))
30 (mes-use-module (mes test))
32 (pass-if "first dummy" #t)
33 (pass-if-not "second dummy" #f)
35 (pass-if-equal "string-split"
37 (string-split "foo" #\:))
39 (pass-if-equal "string-split 2"
41 (string-split "foo:" #\:))
43 (pass-if-equal "string-split 3"
45 (string-split "foo:bar:baz" #\:))
47 (pass-if-equal "string-index"
49 (string-index "foo:bar" #\:))