From 4981a98358aae098714d2266404f7b167993bf0c Mon Sep 17 00:00:00 2001 From: Ellen Spertus Date: Tue, 7 Aug 2018 10:28:48 -0700 Subject: Minor refactoring. Added test. --- scalding/src/test/scala/sandcrawler/ScorableTest.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scalding/src/test/scala') 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 } /* -- cgit v1.2.3