# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/string/natcmp.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/string/natcmp.rb' require 'test/unit' class TCString < Test::Unit::TestCase def test_natcmp assert( -1, "my_prog_v1.1.0".natcmp("my_prog_v1.2.0") ) assert( -1, "my_prog_v1.2.0".natcmp("my_prog_v1.10.0") ) assert( 1, "my_prog_v1.2.0".natcmp("my_prog_v1.1.0") ) assert( 1, "my_prog_v1.10.0".natcmp("my_prog_v1.2.0") ) assert( 0, "my_prog_v1.0.0".natcmp("my_prog_v1.0.0") ) end end