Sha256: 94db5bd5de0cfb32d1e7bfd4eb725dbd39cecf67a57143afed1cdfe58bd2a073
Contents?: true
Size: 697 Bytes
Versions: 10
Compression:
Stored size: 697 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for lib/facets/string/natcmp.rb # # Extracted Mon Sep 03 16:23:07 -0700 2007 # w/ Test Extraction Ratchet # require 'facets/string/natcmp.rb' require 'test/unit' class TestStringCompare < 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
10 entries across 10 versions & 1 rubygems