diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-07 09:39:12 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-07 09:39:12 +0000 |
commit | 4e2aa393ef6b1432774df238aaaa8baaae40e3c6 (patch) | |
tree | e254c145aca9a6ea29e43c2565d7e3c2194d74e8 /test/gdbm | |
parent | 2b5a14bf7c96fcda9ff6cd9bbdd83d9294a0d354 (diff) |
add freeze test for dbm and gdbm.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/gdbm')
-rw-r--r-- | test/gdbm/test_gdbm.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb index a4bddfe078..ca0110cd91 100644 --- a/test/gdbm/test_gdbm.rb +++ b/test/gdbm/test_gdbm.rb @@ -29,5 +29,12 @@ if defined? GDBM } assert(v) end + + def test_freeze + GDBM.open("#{TMPROOT}/a.dbm") {|d| + d.freeze + assert_raises(TypeError) { d["k"] = "v" } + } + end end end |