echo
echo "testing the program rocchio"
echo Making some datafiles...

rm test_rocc >& /dev/null
rm rocc_result >& /dev/null

cat > test_rocc << EOF1
#ook iets

query 1 0 1 0 1 0 

#note that last digit indicates relevance judgment

een   0 1 2 0 1 2 1
twee  0 1 2 1 0 2 0
drie  1 0 1 2 0 1 1
vier  0 2 0 2 1 2 0


EOF1

cat > roc_result << EOF2
new_query   1.50 -1.00  1.50 -0.50  1.00 -0.50 
EOF2


echo If everything is all-right, this should be the last line.

../rocchio test_rocc | diff roc_result -

rm test_rocc >& /dev/null
rm rocc_result >& /dev/null
