From 980c4af4fbc9d0c62fc75396f2237e5c58863ebf Mon Sep 17 00:00:00 2001 From: Ellen Spertus Date: Wed, 25 Jul 2018 11:23:16 -0700 Subject: Checked all fields of first entry in grobid pipe. --- scalding/src/test/scala/sandcrawler/HBaseCrossrefScoreTest.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scalding/src/test') diff --git a/scalding/src/test/scala/sandcrawler/HBaseCrossrefScoreTest.scala b/scalding/src/test/scala/sandcrawler/HBaseCrossrefScoreTest.scala index d70c8f2..9402c0a 100644 --- a/scalding/src/test/scala/sandcrawler/HBaseCrossrefScoreTest.scala +++ b/scalding/src/test/scala/sandcrawler/HBaseCrossrefScoreTest.scala @@ -183,8 +183,10 @@ class HBaseCrossrefScoreTest extends FunSpec with TupleConversions { it("should return a 3-element list.") { assert(outputBuffer.size === 3) } - it("should return the right first slug.") { - val (_, _, slug0) = outputBuffer(0) + it("should return the right first entry.") { + val (sha1, json, slug0) = outputBuffer(0) + assert(sha1 == new String(grobidSampleData(0)(0), "UTF-8")) + assert(json == new String(grobidSampleData(0)(1), "UTF-8")) assert(slug0 == "title1") } /* -- cgit v1.2.3