summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
26a8d8e)
This test asserts that it's not possible to change the keys in the
key-value pair arrays.
b["artist"] = "Foo"
assert_equal(-1, a <=> b)
end
b["artist"] = "Foo"
assert_equal(-1, a <=> b)
end
+
+ def test_modify_key
+ Ogg::Vorbis::Tagger.open(@ogg_buf) do |t|
+ assert_raises(TypeError) do
+ t.comments.keys.first.replace("new")
+ end
+
+ t.comments["Foo"] = "Bar"
+
+ assert_raises(TypeError) do
+ t.comments.keys.last.replace("new")
+ end
+ end
+ end