#!/bin/csh

# CPE 101, Fall 2008, Alex Dekhtyar
# Program 2
# moon.c test


gcc -ansi -Wall -Werror -lm -o moon moon.c


echo "-----------Test 1 ------------------"
echo "          INPUT"
cat moon-test01
echo "--------- OUTPUT ------------------"
moon < moon-test01
echo "----- - - - - - - - - - - - - - - - "


echo "-----------Test 2 ------------------"
echo "          INPUT"
cat moon-test02
echo "--------- OUTPUT ------------------"
moon < moon-test02
echo "----- - - - - - - - - - - - - - - - "


echo "-----------Test 3 ------------------"
echo "          INPUT"
cat moon-test03
echo "--------- OUTPUT ------------------"
moon < moon-test03
echo "----- - - - - - - - - - - - - - - - "



echo "-----------Test 4 ------------------"
echo "          INPUT"
cat moon-test04
echo "--------- OUTPUT ------------------"
moon < moon-test04
echo "----- - - - - - - - - - - - - - - - "



echo "-----------Test 5 ------------------"
echo "          INPUT"
cat moon-test05
echo "--------- OUTPUT ------------------"
moon < moon-test05
echo "----- - - - - - - - - - - - - - - - "


echo "-----------Test 6 ------------------"
echo "          INPUT"
cat moon-test06
echo "--------- OUTPUT ------------------"
moon < moon-test06
echo "----- - - - - - - - - - - - - - - - "


echo "-----------Test 7 ------------------"
echo "          INPUT"
cat moon-test07
echo "--------- OUTPUT ------------------"
moon < moon-test07
echo "----- - - - - - - - - - - - - - - - "


echo "-----------Test 8 ------------------"
echo "          INPUT"
cat moon-test08
echo "--------- OUTPUT ------------------"
moon < moon-test08
echo "----- - - - - - - - - - - - - - - - "


echo " DONE! "

