Sha256: d4cd2d31bbf0f74e9ab0ca74e996807d0de2db13b54321ee2e91fdeb3633f727
Contents?: true
Size: 417 Bytes
Versions: 3
Compression:
Stored size: 417 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, 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
omnicat-0.1.2 | lib/test/unit/hash_test.rb |
omnicat-0.1.1 | lib/test/unit/hash_test.rb |
omnicat-0.1.0 | lib/test/unit/hash_test.rb |