equal
deleted
inserted
replaced
111 echo -e " val ls5 = ls4 ::: ls4.reverse" >> $out |
111 echo -e " val ls5 = ls4 ::: ls4.reverse" >> $out |
112 echo -e " groupById(ls5, Map()) == Map(1 -> List(2,2), 2 -> List(3,3), ....)" >> $out |
112 echo -e " groupById(ls5, Map()) == Map(1 -> List(2,2), 2 -> List(3,3), ....)" >> $out |
113 |
113 |
114 if (scala_assert "danube.scala" "danube_test3.scala") |
114 if (scala_assert "danube.scala" "danube_test3.scala") |
115 then |
115 then |
116 echo -e -e " --> success" >> $out |
116 echo -e " --> success" >> $out |
117 else |
117 else |
118 echo -e -e " --> ONE OF THE TESTS FAILED\n" >> $out |
118 echo -e " --> ONE OF THE TESTS FAILED\n" >> $out |
119 fi |
119 fi |
120 fi |
120 fi |
121 |
121 |
122 ### danube favourites tests |
122 ### danube favourites tests |
123 |
123 |
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 1 |
|
177 |
176 |
178 if [ $tsts -eq 0 ] |
|
179 then |
|
180 echo -e " val rmap = Map(\"1\" -> List(\"b\", \"a\"), " >> $out |
|
181 echo -e " \"2\" -> List(\"y\", \"x\"), " >> $out |
|
182 echo -e " \"3\" -> List(\"c\", \"a\")) " >> $out |
|
183 echo -e " val nmap = Map(\"a\" -> \"A\", \"b\" -> \"B\", \"c\" -> \"C\", " >> $out |
|
184 echo -e " \"x\" -> \"X\", \"y\" -> \"Y\") " >> $out |
|
185 echo -e " most_recommended(rmap, nmap).toSet == " >> $out |
|
186 echo -e " Set((\"A\",2), (\"B\",1), (\"C\",1), (\"X\",1), (\"Y\",1)) " >> $out |
|
187 |
177 |
188 if (scala_assert "danube.scala" "danube_test7.scala") |
|
189 then |
|
190 echo -e " --> success" >> $out |
|
191 else |
|
192 echo -e " --> ONE OF THE TESTS FAILED\n" >> $out |
|
193 fi |
|
194 fi |
|
195 |
|