aboutsummaryrefslogtreecommitdiffstats
path: root/scalding/src/test
diff options
context:
space:
mode:
authorEllen Spertus <ellen.spertus@gmail.com>2018-08-07 10:28:48 -0700
committerEllen Spertus <ellen.spertus@gmail.com>2018-08-07 10:28:48 -0700
commit4981a98358aae098714d2266404f7b167993bf0c (patch)
treee045e4ee2eca6517f02750bb8e5a2e5f60fe277e /scalding/src/test
parentdddb7ed410bdd542ca12756d3e97aca6beea5532 (diff)
downloadsandcrawler-4981a98358aae098714d2266404f7b167993bf0c.tar.gz
sandcrawler-4981a98358aae098714d2266404f7b167993bf0c.zip
Minor refactoring. Added test.
Diffstat (limited to 'scalding/src/test')
-rw-r--r--scalding/src/test/scala/sandcrawler/ScorableTest.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/scalding/src/test/scala/sandcrawler/ScorableTest.scala b/scalding/src/test/scala/sandcrawler/ScorableTest.scala
index 535b8f6..9437fe6 100644
--- a/scalding/src/test/scala/sandcrawler/ScorableTest.scala
+++ b/scalding/src/test/scala/sandcrawler/ScorableTest.scala
@@ -77,8 +77,9 @@ class ScorableTest extends FlatSpec with Matchers {
}
"computeOutput()" should "return Scorable.MaxScore if given identical ReduceFeatures" in {
- val output = Scorable.computeOutput(new ReduceFeatures(JsonString), new ReduceFeatures(JsonString))
- output.score shouldBe Scorable.MaxScore
+ val score = Scorable.computeSimilarity(
+ new ReduceFeatures(JsonString), new ReduceFeatures(JsonString))
+ score shouldBe Scorable.MaxScore
}
/*