Sha256: 147f72d6105c42c70431d2e38f03ec9fca5adff1a9f5461a6556524805d67b52
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/string/natcmp.rb # # Extracted Wed Aug 23 18:22:52 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.7.30 | test/lib/facets/core/string/test_natcmp.rb |