Sha256: 873d470be64959f45feb340e30e3148160a863c5f21399ec1f8aef32d199923a
Contents?: true
Size: 589 Bytes
Versions: 7
Compression:
Stored size: 589 Bytes
Contents
require "audioinfo" require "minitest/autorun" class TestCaseInsensitiveHash < MiniTest::Unit::TestCase def test_string_access h = CaseInsensitiveHash.new h["foo"] = "bar" assert_equal "bar", h["foo"] end def test_symbol_access h = CaseInsensitiveHash.new h[:foo] = "bar" assert_equal "bar", h[:foo] end def test_case_insensitive_access h = CaseInsensitiveHash.new h["FOO"] = "bar" assert_equal "bar", h["foo"] end def test_copy_constructor h = CaseInsensitiveHash.new({"FOO" => "bar"}) assert_equal "bar", h["foo"] end end
Version data entries
7 entries across 7 versions & 1 rubygems