* subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
[svn.git] / subversion / bindings / swig / ruby / test / test_error.rb
blob10fb50be7e0dd7b706e3a2f26b1e130d930954a6
1 require "my-assertions"
3 require "svn/error"
5 class SvnErrorTest < Test::Unit::TestCase
6   def test_error_name
7     Svn::Error.constants.each do |const_name|
8       if /\A[A-Z0-9_]+\z/ =~ const_name and
9           Svn::Error.const_get(const_name).is_a?(Class)
10         class_name = Svn::Util.to_ruby_class_name(const_name)
11         assert_equal(Svn::Error.const_get(class_name),
12                      Svn::Error.const_get(const_name))
13       end
14     end
15   end
16 end