Sha256: 7b7a22356d09bfa851b311ebe416b2099a4416da75629e67313f770c15e0bb15

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper'))

class TestHash < Test::Unit::TestCase
  def test_to_hash
    categories_hash = { 
      "pos" => { doc_count: 0, docs: {}, tokens: {}, token_count: 0 } 
    }
    categories = OmniCat::Hash.new
    categories["pos"] = OmniCat::Classifiers::StrategyInternals::Category.new(categories_hash["pos"])
    assert_equal(categories_hash, categories.to_hash)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omnicat-0.2.0 lib/test/unit/hash_test.rb