]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
[registry] more tests
authorMatthias H <apoc@sixserv.org>
Thu, 6 Mar 2014 13:23:28 +0000 (14:23 +0100)
committerMatthias H <apoc@sixserv.org>
Thu, 6 Mar 2014 13:23:28 +0000 (14:23 +0100)
test/test_registry.rb

index a7d45457570e24115f7c4e43c82ce23c6b482d42..85383269be81e504c72dc8131819d7bedd9ab10b 100644 (file)
@@ -9,6 +9,9 @@ require 'tmpdir'
 
 module RegistryHashInterfaceTests
   def test_default
+    @reg.set_default(42)
+    assert_equal(42, @reg['not-here'])
+    assert_equal(42, @reg.default)
   end
 
   def test_flush
@@ -35,9 +38,11 @@ module RegistryHashInterfaceTests
   end
 
   def test_optimize
+    @reg.optimize
   end
 
   def test_close
+    @reg.close
   end
 
   def test_getset # [] and []=