about summary refs log tree commit
path: root/test/test_old_segfaults.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_old_segfaults.rb')
-rw-r--r--test/test_old_segfaults.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_old_segfaults.rb b/test/test_old_segfaults.rb
index 0814150..5e7ec3e 100644
--- a/test/test_old_segfaults.rb
+++ b/test/test_old_segfaults.rb
@@ -18,4 +18,16 @@ class TestOldSegfaults < Test::Unit::TestCase
       assert_raises(NoMethodError) { matched.destroy }
     end
   end
+
+  def test_empty_show_nodes
+    assert_nothing_raised do
+      t = Patricia.new
+      t.show_nodes
+    end
+  end
+
+  def test_empty_num_nodes
+    t = Patricia.new
+    assert_equal 0, t.num_nodes
+  end
 end