about summary refs log tree commit
path: root/test/test_subclass.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_subclass.rb')
-rw-r--r--test/test_subclass.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_subclass.rb b/test/test_subclass.rb
new file mode 100644
index 0000000..013bfdd
--- /dev/null
+++ b/test/test_subclass.rb
@@ -0,0 +1,11 @@
+require 'test/unit'
+require 'rpatricia'
+
+class SubPatricia < Patricia
+end
+
+class TestSubclass < Test::Unit::TestCase
+  def test_new
+    assert_equal SubPatricia, SubPatricia.new.class
+  end
+end