# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/string/to_re.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/string/to_re.rb' require 'test/unit' class TCString < Test::Unit::TestCase def test_to_re assert_equal( /abc/, "abc".to_re ) assert_equal( /a\+bc/, "a+bc".to_re ) assert_equal( /a+bc/, "a+bc".to_re(false) ) end end