Project

General

Profile

Feature #4935 ยป label_test.diff

Test for the implementation of this feature. - adgar (Michael Edgar), 06/27/2011 11:31 AM

View differences:

test/ruby/test_hash.rb (working copy)
917 917
      assert_not_equal(h.hash, h.invert.hash, feature4262)
918 918
    end
919 919
  end
920
  
921
  def test_label_syntax
922
    feature4935 = '[ruby-core:37553]'
923
    x = 'world'
924
    hash = {foo: 1, 'foo-bar': 2, "hello-#{x}": 3}
925
    [[:foo, 1], [:'foo-bar', 2], [:'hello-world', 3]].each do |k, v|
926
      assert_equal(hash[k], v)
927
    end
928
  end
920 929
end