Sha256: fa08e60cc5c021124097d15db02fa62932d6de82137aaec343b0522e57e2b0ee

Contents?: true

Size: 379 Bytes

Versions: 3

Compression:

Stored size: 379 Bytes

Contents


require 'test/unit'
require 'facet/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

3 entries across 3 versions & 1 rubygems

Version Path
facets-0.7.1 test/tc_statichash.rb
facets-0.7.0 test/tc_statichash.rb
facets-0.7.2 test/tc_statichash.rb