# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/string/modulize.rb # # Extracted Mon Apr 24 11:08:35 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/string/modulize.rb' require 'test/unit' class TCString < Test::Unit::TestCase def test_modulize assert_equal( 'MyModule::MyClass', 'my_module__my_class'.modulize ) assert_equal( '::MyModule::MyClass', '__my_module__my_class'.modulize ) assert_equal( 'MyModule::MyClass', 'my_module/my_class'.modulize ) assert_equal( '::MyModule::MyClass', '/my_module/my_class'.modulize ) end end