You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
421 B
28 lines
421 B
#!/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 -> frob is evil]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
|