test/02hash.rb in xkeys-0.0.2 vs test/02hash.rb in xkeys-1.0.1
- old
+ new
@@ -21,11 +21,14 @@
def test_array_set_hash
a = [].extend XKeys::Set_Hash
assert_respond_to(a, :[]=)
- a[0] = '0'
- assert_equal(['0'], a, "a[0] = '0'")
+ a[0] = ?0
+ assert_equal([?0], a, "a[0] = ?0")
+
+ a[:[]] = ?1
+ assert_equal([?0, ?1], a, "a[:[]] = ?1")
a.clear; a[0, :a] = '0:a'
assert_equal([ { :a => '0:a' } ], a, "a[0, :a] = '0:a'")
a.clear; a[0, 1] = '01'