require 'test/unit' require 'carat/statichash' ###### ##### #### ###### ## ## ## ## ## #### ## ## ## ## ## ## ## ##### #### ## class TC_StaticHash < Test::Unit::TestCase def setup @sh1 = StaticHash.new end def test_assign @sh1["x"] = 1 assert_raises( ArgumentError ){ @sh1["x"] = 2 } end end