add multibyte regexp test
[bpt/guile.git] / test-suite / standalone / test-guile-snarf
CommitLineData
2dea6a4d
BT
1#!/bin/sh
2snarf ()
3{
4 echo "$1" | guile-snarf - | tail -n +2 | tr -d ' \t\n'
5}
6
7snarf_test ()
8{
9 x=`snarf "$1"`
10 if [ x"$x" != x"$2" ]; then
11 echo "Incorrect output: expected \"$2\", but got \"$x\""
12 exit 1
13 fi
14}
15
16snarf_test "^^a^:^" "a;"
17snarf_test " ^ ^ b ^ : ^ " "b;"
fd029c35
BT
18snarf_test "c\n^^d^:^\ne" "d;"
19snarf_test "f^^g^:^h" "g;"
20snarf_test "^^i^:^j^^k^:^" "i;k;"