Sha256: 7e24954b0c69cf4d9cde3ff12a32f080e76d5a4b6eb20799da80fed99708fcae

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents


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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
carats-0.3.0 test/tc_statichash.rb