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)
assert_not_equal(h.hash, h.invert.hash, feature4262)
end
end
def test_label_syntax
feature4935 = '[ruby-core:37553]'
x = 'world'
hash = {foo: 1, 'foo-bar': 2, "hello-#{x}": 3}
[[:foo, 1], [:'foo-bar', 2], [:'hello-world', 3]].each do |k, v|
assert_equal(hash[k], v)
end
end
end
(2-2/2)