From cd3d6d573985cac087bd51f44bd8ad87b9e4e429 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 2 Dec 2010 14:14:12 -0800 Subject: RDoc updates We still need a lot of work in this area, but this is better than nothing. --- test/test_tdb.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/test_tdb.rb b/test/test_tdb.rb index 188e219..bd25203 100644 --- a/test/test_tdb.rb +++ b/test/test_tdb.rb @@ -257,4 +257,14 @@ class TestTdb < Test::Unit::TestCase assert Process.waitpid2(pid)[1].success? assert_equal true, @tdb.trylockall end + + def test_check_constant_typos + names = {} + TDB.constants.each { |const| names[const] = TDB.const_get(const) } + assert_equal TDB.constants.size, names.size + + values = {} + TDB.constants.each { |const| values[TDB.const_get(const)] = const } + assert_equal TDB.constants.size, values.size + end end -- cgit v1.2.3-24-ge0c7