diff options
author | Ellen Spertus <ellen.spertus@gmail.com> | 2018-09-04 14:45:08 -0700 |
---|---|---|
committer | Ellen Spertus <ellen.spertus@gmail.com> | 2018-09-04 14:45:08 -0700 |
commit | f41d8c48f4ce107db558b86a956fbdfd1e018a32 (patch) | |
tree | f0046a11d725da9d851d9ff20aafab5a45302ee6 /scalding | |
parent | 98eebb1d9abc954c0fe1735bf5472c57e71dc7a8 (diff) | |
download | sandcrawler-f41d8c48f4ce107db558b86a956fbdfd1e018a32.tar.gz sandcrawler-f41d8c48f4ce107db558b86a956fbdfd1e018a32.zip |
minor style improvement
Diffstat (limited to 'scalding')
-rw-r--r-- | scalding/src/test/scala/sandcrawler/ScorableFeaturesTest.scala | 4 |
1 files 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 { |