main_marking2/danube_test2.scala
changeset 463 0315d9983cd0
parent 462 34feeb53c0ba
child 464 73ced118f73d
--- a/main_marking2/danube_test2.scala	Sun Jan 15 10:58:13 2023 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-
-import io.Source
-import scala.util._
-
-import M2._
-
-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")
-
-val urban_res1 = process_ratings(urban_ratings)
-val urban_rat_elems = List(("1","1"), ("1","3"), ("1","6"), ("1","47"))
-
-assert(urban_res1.length == 48580)
-assert(urban_rat_elems.forall(urban_res1.contains(_)))
-
-assert(process_movies(urban_movies).length == 9742)
-
-