diff -r 663c2a9108d1 -r 4de31fdc0d67 main_testing2/danube_test2.scala --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main_testing2/danube_test2.scala Mon Nov 02 02:31:44 2020 +0000 @@ -0,0 +1,20 @@ + +import io.Source +import scala.util._ + +import CW7b._ + +def urban_get_csv_file(name: String) : List[String] = { + val csv = Source.fromFile(name) + csv.mkString.split("\n").toList.drop(1) +} + +val urban_ratings = urban_get_csv_file("ratings.csv") +val urban_movies = urban_get_csv_file("movies.csv") + + +assert(process_ratings(urban_ratings).length == 48580) + +assert(process_movies(urban_movies).length == 9742) + +