# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/string/modulize.rb # # Extracted Mon Jun 05 08:14:29 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