equal
deleted
inserted
replaced
171 else |
171 else |
172 echo -e " --> ONE OF THE TESTS FAILED\n" >> $out |
172 echo -e " --> ONE OF THE TESTS FAILED\n" >> $out |
173 fi |
173 fi |
174 fi |
174 fi |
175 |
175 |
|
176 ### danube most_recommended |
|
177 |
|
178 if [ $tsts -eq 0 ] |
|
179 then |
|
180 echo -e " val ratings_map2 = for ((k, v) <- ratings_map) yield (k, v.take(2)) " >> $out |
|
181 echo -e " most_recommended(ratings_map2, movies_map).take(3) == " >> $out |
|
182 echo -e " List((\"M*A*S*H (a.k.a. MASH) (1970)\",15), " >> $out |
|
183 echo -e " (\"Star Trek: First Contact (1996)\",10), " >> $out |
|
184 echo -e " (\"Inception (2010)\",9))) " >> $out |
|
185 |
|
186 if (scala_assert "danube.scala" "danube_test7.scala") |
|
187 then |
|
188 echo -e " --> success" >> $out |
|
189 else |
|
190 echo -e " --> ONE OF THE TESTS FAILED\n" >> $out |
|
191 fi |
|
192 fi |
|
193 |