aboutsummaryrefslogtreecommitdiffstats
path: root/scalding/src/test/scala
diff options
context:
space:
mode:
authorEllen Spertus <ellen.spertus@gmail.com>2018-07-24 14:27:33 -0700
committerEllen Spertus <ellen.spertus@gmail.com>2018-07-24 14:27:33 -0700
commit07edf1ccad9c3268324926471dd0c8a7433f0c08 (patch)
tree559f773d04fe89ea31bb25d1fb6c02d963766962 /scalding/src/test/scala
parent8a63e05c18bbf84dddccd5596f9e0aefbf469789 (diff)
downloadsandcrawler-07edf1ccad9c3268324926471dd0c8a7433f0c08.tar.gz
sandcrawler-07edf1ccad9c3268324926471dd0c8a7433f0c08.zip
Clean-up
Diffstat (limited to 'scalding/src/test/scala')
-rw-r--r--scalding/src/test/scala/sandcrawler/HBaseCrossrefScoreTest.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/scalding/src/test/scala/sandcrawler/HBaseCrossrefScoreTest.scala b/scalding/src/test/scala/sandcrawler/HBaseCrossrefScoreTest.scala
index 8bdc7a8..a59b278 100644
--- a/scalding/src/test/scala/sandcrawler/HBaseCrossrefScoreTest.scala
+++ b/scalding/src/test/scala/sandcrawler/HBaseCrossrefScoreTest.scala
@@ -110,11 +110,12 @@ class HBaseCrossrefScoreTest extends FlatSpec with Matchers {
"titleToSlug()" should "extract the parts of titles before a colon" in {
val slug = HBaseCrossrefScore.titleToSlug("HELLO:there")
- slug shouldBe "hello"
+ slug should contain ("hello")
}
+
it should "extract an entire colon-less string" in {
val slug = HBaseCrossrefScore.titleToSlug("hello THERE")
- slug shouldBe "hello there"
+ slug should contain ("hello there")
}
"grobidToSlug()" should "get the right slug for a grobid json string" in {