Sha256: 1ff90ed0ae69b84d833e24ab43d61b35287d1f3e5ae017f8de0caca33c18997f
Contents?: true
Size: 583 Bytes
Versions: 32
Compression:
Stored size: 583 Bytes
Contents
require File.join(File.expand_path(File.dirname(__FILE__)), '../../test_helper.rb') require 'rbbt/ner/banner' require 'test/unit' class TestBanner < Test::Unit::TestCase def test_match begin ner = Banner.new mentions = ner.match(" The P-ITIM-compelled multi-phosphoprotein complex binds to and activates SHP-2, which in turn dephosphorylates SHIP and Shc and probably other substrates.") ["SHP - 2", "SHIP", "Shc"].each{|mention| assert(mentions.include? mention) } rescue puts $!.message puts $!.backtrace end end end
Version data entries
32 entries across 32 versions & 1 rubygems