[go: up one dir, main page]

File: test05

package info (click to toggle)
diction 1.11-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 928 kB
  • sloc: sh: 3,155; ansic: 2,583; makefile: 88
file content (28 lines) | stat: -rwxr-xr-x 405 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

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

cat >test.in <<eof
Checking for word stems -- frobnification.
eof

cat >test.db <<eof
 frob~	frob is evil
eof

cat >test.ref <<eof
test.in:1: Checking for word stems -- [frob]nification.

1 phrase 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