Sha256: d5e95598d03fba7d4c183d385851ccef2e09de4ba6c7c199dc6f26af85ea1e32
Contents?: true
Size: 465 Bytes
Versions: 19
Compression:
Stored size: 465 Bytes
Contents
# Test for facets/string/natcmp 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
19 entries across 19 versions & 1 rubygems