Sha256: 764d3bcda17c50914fc1c4a87061cdde5bfa0d18a85c38af2a7a6655eeb7681c
Contents?: true
Size: 432 Bytes
Versions: 8
Compression:
Stored size: 432 Bytes
Contents
require File.join(File.expand_path(File.dirname(__FILE__)), '../../..', 'test_helper.rb') require 'rbbt/document' require 'rbbt/document/corpus' require 'rbbt/document/corpus/pubmed' class TestCorpusPubmed < Test::Unit::TestCase def test_add_pmid corpus = Document::Corpus.setup({}) document = corpus.add_pmid("33359141", :abstract, true) title = document.to(:title) assert title.include?("COVID-19") end end
Version data entries
8 entries across 8 versions & 1 rubygems