Re: Testing with spark testing base

2015-12-05 Thread Silvio Fiorito
ser@spark.apache.org>" <user@spark.apache.org<mailto:user@spark.apache.org>> Subject: Testing with spark testing base Hi. I'm testing "spark testing base". For example: class MyFirstTest extends FunSuite with SharedSparkContext{ def tokenize(f: RDD[String]) = { f.

Testing with spark testing base

2015-12-05 Thread Masf
Hi. I'm testing "spark testing base". For example: class MyFirstTest extends FunSuite with SharedSparkContext{ def tokenize(f: RDD[String]) = { f.map(_.split("").toList) } test("really simple transformation"){ val input = List("hi", "hi