File: insertion.sh

package info (click to toggle)
migemo 0.32-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,764 kB
  • ctags: 123
  • sloc: ruby: 971; sh: 541; makefile: 113
file content (18 lines) | stat: -rwxr-xr-x 538 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

#
# insertion test
#
echo "mot"| ruby -I.. ../migemo -temacs -i"\\s *" -n test-dict > tmp.out
cat <<'EOF' > tmp.right
m\s *o\s *t\|\s *\s *\|\s *[äĤƤ]\|\s *\([åĥƥ]\|\s *\(\s *\s *\|\s *\)\|\s *\)
EOF
cmp tmp.right tmp.out || exit 1

echo "mot"| ruby -I.. ../migemo -i"\\s *" -n test-dict > tmp.out
cat <<'EOF' > tmp.right
m\s *o\s *t|\s *\s *|\s *[äĤƤ]|\s *(?:[åĥƥ]|\s *(?:\s *\s *|\s *)|\s *)
EOF
cmp tmp.right tmp.out || exit 1

exit 0