Sha256: 876377374a7e70dbb55ae0a90d5c43ebe51dfcf477d0c001da7ee45a6b0f8d31

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), '../../..', 'test_helper.rb')
require 'rbbt/ner/annotations'
require 'rbbt/ner/annotations/named_entity'
require 'rbbt/ner/annotations/transformed'

class TestClass < Test::Unit::TestCase
  def test_info
    a = "test"
    a.extend NamedEntity
    assert(! a.info.keys.include?("offset"))
    a.offset = 10
    assert a.info.keys.include? "offset"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rbbt-text-0.5.0 test/rbbt/ner/annotations/test_named_entity.rb