# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/string/cmp.rb # # Extracted Mon Apr 24 11:08:35 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/string/cmp.rb' require 'test/unit' class TCString < Test::Unit::TestCase def test_cmp assert_equal( 0, "abc".cmp("abc") ) assert_equal( -1, "abc".cmp("abcd") ) assert_equal( 1, "abcd".cmp("abc") ) assert_equal( -1, "abc".cmp("bcd") ) assert_equal( 1, "bcd".cmp("abc") ) end end