#!/bin/sh

cp /dev/null hw04test.OUT

echo "testing constructors"
echo "" >>hw04test.OUT; echo "testing constructors" >>hw04test.OUT
./test_constructors >>hw04test.OUT 2>&1

echo "testing empty()"
echo "" >>hw04test.OUT; echo "testing empty()" >>hw04test.OUT
./test_empty >>hw04test.OUT 2>&1

echo "testing length()"
echo "" >>hw04test.OUT; echo "testing length()" >>hw04test.OUT
./test_length >>hw04test.OUT 2>&1

echo "testing getElementAt()"
echo "" >>hw04test.OUT; echo "testing getElementAt()" >>hw04test.OUT
./test_get >>hw04test.OUT 2>&1

echo "testing replaceElementAt()"
echo "" >>hw04test.OUT; echo "testing replaceElementAt()" >>hw04test.OUT
./test_replace >>hw04test.OUT 2>&1

echo "testing << operator"
echo "" >>hw04test.OUT; echo "testing << operator" >>hw04test.OUT
./test_output >>hw04test.OUT 2>&1
if [ -r TMP ]
then
        rm TMP
fi

echo "testing + operator"
echo "" >>hw04test.OUT; echo "testing + operator" >>hw04test.OUT
./test_plus >>hw04test.OUT 2>&1

echo "testing += operator"
echo "" >>hw04test.OUT; echo "testing += operator" >>hw04test.OUT
./test_plusequals >>hw04test.OUT 2>&1

echo "testing relational operators"
echo "" >>hw04test.OUT; echo "testing relational operators" >>hw04test.OUT
./test_relationals >>hw04test.OUT 2>&1

echo "testing append()"
echo "" >>hw04test.OUT; echo "testing append()" >>hw04test.OUT
./test_append >>hw04test.OUT 2>&1

echo "testing find()"
echo "" >>hw04test.OUT; echo "testing find()" >>hw04test.OUT
./test_find >>hw04test.OUT 2>&1

echo "testing insertBefore()"
echo "" >>hw04test.OUT; echo "testing insertBefore()" >>hw04test.OUT
./test_insert >>hw04test.OUT 2>&1


