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 | 13e0356483973615f382b033c8f0b28225481269 (patch) | |
| tree | e254c145aca9a6ea29e43c2565d7e3c2194d74e8 /test | |
| parent | a2018b004b7d5b764a13018337cf599559f4b1b9 (diff) | |
| download | ruby-13e0356483973615f382b033c8f0b28225481269.tar.gz ruby-13e0356483973615f382b033c8f0b28225481269.tar.xz ruby-13e0356483973615f382b033c8f0b28225481269.zip | |
add freeze test for dbm and gdbm.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -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 a4bddfe07..ca0110cd9 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 |
