From f41d8c48f4ce107db558b86a956fbdfd1e018a32 Mon Sep 17 00:00:00 2001 From: Ellen Spertus Date: Tue, 4 Sep 2018 14:45:08 -0700 Subject: minor style improvement --- scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala b/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala index 3f6b87c..112a5e5 100644 --- a/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala +++ b/scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala @@ -16,11 +16,11 @@ class ScorableFeaturesTest extends FlatSpec with Matchers { private def titleToSlug(s : String) : Option[String] = ScorableFeatures.create(title = s).toSlug "mapToSlug()" should "extract the parts of titles before a colon" in { - titleToSlug("HELLO:there") shouldBe (Some("hellothere")) + titleToSlug("HELLO:there") shouldBe Some("hellothere") } it should "extract an entire colon-less string" in { - titleToSlug("hello THERE") shouldBe (Some("hellothere")) + titleToSlug("hello THERE") shouldBe Some("hellothere") } it should "return Scorable.NoSlug if given empty string" in { -- cgit v1.2.3