diff options
author | Ellen Spertus <ellen.spertus@gmail.com> | 2018-08-07 10:28:48 -0700 |
---|---|---|
committer | Ellen Spertus <ellen.spertus@gmail.com> | 2018-08-07 10:28:48 -0700 |
commit | 4981a98358aae098714d2266404f7b167993bf0c (patch) | |
tree | e045e4ee2eca6517f02750bb8e5a2e5f60fe277e /scalding/src/test/scala | |
parent | dddb7ed410bdd542ca12756d3e97aca6beea5532 (diff) | |
download | sandcrawler-4981a98358aae098714d2266404f7b167993bf0c.tar.gz sandcrawler-4981a98358aae098714d2266404f7b167993bf0c.zip |
Minor refactoring. Added test.
Diffstat (limited to 'scalding/src/test/scala')
-rw-r--r-- | scalding/src/test/scala/sandcrawler/ScorableTest.scala | 5 |
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 } /* |