Re: Testing with spark testing base

2015-12-05 Thread Silvio Fiorito
gt;" 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.map(_.split("").toList) } test(&quo

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 miguel", "bye") val expected = List(List(