marking3/knight1_test.sh
author Christian Urban <urbanc@in.tum.de>
Sun, 09 Dec 2018 01:36:49 +0000
changeset 243 9bb36426c781
child 244 a359976a6f3e
permissions -rwxr-xr-x
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
243
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
#!/bin/bash
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
# to make the script fail safely
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
set -euo pipefail
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
out=${1:-output}
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
echo "" > $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
echo "Below is the feedback and provisional marks for your submission" >> $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
echo "for assignment 8 Part 1.  Please note all marks are provisional until" >> $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
echo "ratified by the assessment board -- this is not an official" >> $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
echo "results transcript." >> $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
echo "" >> $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
# marks for CW8 part 1
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
marks=$(( 0 ))
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
# compilation tests (used to be 30 secs)
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
function scala_compile {
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
  (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala "$1" 2> /dev/null 1> /dev/null) 
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
}
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
# functional tests
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
function scala_assert {
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
  (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -nc -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
}
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
# purity test
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
function scala_vars {
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
   (egrep '\bvar\b|\breturn\b|\.par|ListBuffer|mutable|new Array' "$1" 2> /dev/null 1> /dev/null)
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    38
}
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    39
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    40
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
# knights1: purity test
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
echo "knight1.scala does not contain vars, returns, Arrays, ListBuffers etc?" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
if (scala_vars knight1.scala)
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
  echo "  --> fail" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    48
  tsts0=$(( 1 ))
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
else
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
  echo "  --> success" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
  tsts0=$(( 0 )) 
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
# compilation test
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
if [ $tsts0 -eq 0 ]
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
then    
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
  echo "knight1.scala runs?" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
  if (scala_compile knight1.scala)
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
  then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
    echo "  --> success " | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
    tsts1=$(( 0 ))
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
  else
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
    echo "  --> scala did not run knight1.scala" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
    tsts1=$(( 1 )) 
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
  fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    69
else
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
  tsts1=$(( 1 ))   
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
### knight1 test
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
if [ $tsts1 -eq 0 ]
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
    echo " is_legal(8, Nil, (3, 4)) == true " | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
    echo " is_legal(8, List((4, 1), (1, 0)), (4, 1)) == false " | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
    echo " is_legal(2, Nil, (0, 0)) == true" | tee -a $out                          
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
    if (scala_assert "knight1.scala" "knight1_test1.scala")
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
    then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    83
        echo "  --> success" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    84
	marks=$(( marks + 1 ))
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    85
    else
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    86
        echo "  --> test failed" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
    fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    88
fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    89
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    90
### knight2 test
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    92
if [ $tsts1 -eq 0 ]
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    94
  echo " legal_moves(8, Nil, (2,2)) == List((3,4), (4,3), (4,1), (3,0), (1,0), (0,1), (0,3), (1,4))" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    95
  echo " legal_moves(8, Nil, (7,7)) == List((6,5), (5,6))" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    96
  echo " legal_moves(8, List((4,1), (1,0)), (2,2)) == List((3,4), (4,3), (3,0), (0,1), (0,3), (1,4))" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    97
  echo " legal_moves(8, List((6,6)), (7,7)) == List((6,5), (5,6))" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    98
  echo " legal_moves(1, Nil, (0,0)) == Nil" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    99
  echo " legal_moves(2, Nil, (0,0)) == Nil" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   100
  echo " legal_moves(3, Nil, (0,0)) == List((1,2), (2,1))" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   101
  
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   102
  if (scala_assert "knight1.scala" "knight1_test2.scala")
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   103
  then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   104
     echo "  --> success" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   105
     marks=$(( marks + 1 ))
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   106
  else
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   107
    echo "  --> test failed" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   108
  fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   109
fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   110
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   111
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   112
### knight3 test
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   113
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   114
if [ $tsts1 -eq 0 ]
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   115
then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   116
  echo " all_tours from every position on the board" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   117
  echo " dim = 1: 1" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   118
  echo "       2: 0,0,0,0" >>  $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   119
  echo "       3: 0,0,0,0,0,0,0,0,0" >>  $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   120
  echo "       4: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   121
  echo "       5: 304,0,56,0,304,0,56,0,56,0,56,0,64,0,56,0,56,0,56,0,304,0,56,0,304" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   122
  
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   123
  if (scala_assert "knight1.scala" "knight1_test3a.scala") 
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   124
  then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   125
     echo "  --> success" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   126
     marks=$(( marks + 1 ))
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   127
  else
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   128
    echo "  --> test failed" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   129
  fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   130
fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   131
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   132
if [ $tsts1 -eq 0 ]
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   133
then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   134
  echo " enum_tours(5, List((0,2)) ) => 56 tours? and all correct?" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
  
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   136
  if (scala_assert "knight1.scala" "knight1_test3b.scala") 
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   137
  then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   138
     echo "  --> success" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   139
     marks=$(( marks + 1 ))
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   140
  else
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   141
    echo "  --> test failed" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   142
  fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   143
fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   144
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   145
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   146
### knight2a test
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   147
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   148
if [ $tsts1 -eq 0 ]
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   149
then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   150
  echo " val f = (x:(Int, Int)) => if (x._1 > 3) Some(List(x)) else None " | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   151
  echo "   first(List((1,0),(2,0),(3,0),(4,0)), f) == Some(List((4,0)))" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   152
  echo "   first(List((1,0),(2,0),(3,0)), f) == None" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   153
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   154
  if (scala_assert "knight1.scala" "knight1_test4.scala") 
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
  then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   156
    echo "  --> success" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   157
    marks=$(( marks + 1 ))
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   158
  else
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   159
    echo "  --> test failed" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   160
  fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   161
fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   162
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   163
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   164
### knight2b test
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   165
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   166
if [ $tsts1 -eq 0 ]
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   167
then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   168
  echo " is first_tour(8, List((0, 0))) ok? " | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   169
  echo " is first_tour(4, List((0, 0))) == None " | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   170
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   171
  if (scala_assert "knight1.scala" "knight5_test.scala") 
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   172
  then
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   173
     echo "  --> success" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   174
     marks=$(( marks + 2 ))
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   175
  else
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   176
    echo "  --> test failed" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   177
  fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   178
fi
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   179
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   180
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   181
## final marks
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   182
echo "Overall mark for Part 1" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   183
echo "$marks" | tee -a $out
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   184
9bb36426c781 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   185