# -*- encoding: binary -*- require 'test/unit' $-w = true require 'tdb' class TestHashFunctions < Test::Unit::TestCase include TDB::HashFunctions def test_hashes TDB::HASHES.each do |name,_| next if :default == name assert_kind_of Integer, __send__("tdb_hash_#{name}", "hello") end end end