[go: up one dir, main page]

File: test06

package info (click to toggle)
diction 1.14-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 968 kB
  • sloc: sh: 3,413; ansic: 2,644; makefile: 89
file content (29 lines) | stat: -rwxr-xr-x 470 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

echo -n $0: 'Recovery... '

cat >test.in <<eof
Checking for match directly after another match -- flip-flap.
eof

cat >test.db <<eof
 flip-~	flip prefix
 flap	flap alarm
eof

cat >test.ref <<eof
test.in:1.1-1.61: Checking for match directly after another match -- [flip-][flap].

2 phrases in 1 sentence found.
eof

sh ./test/rundiction -f test.db test.in >test.data

if cmp test.ref test.data
then
  rm -f test.*
  echo passed
else
  echo failed
  exit 1
fi