Sha256: d3238d7b1e566e07b282de409aafe1720907562bec17f61efc87d17588ed1d4c

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 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, prior: 0.0, tokens: {}, token_count: 0 } }
    categories = OmniCat::Hash.new
    categories["pos"] = OmniCat::Classifiers::BayesInternals::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.1.3 lib/test/unit/hash_test.rb