1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-03-01 01:41:52 -05:00
Dan McGee 5e4882dfe8 Fix vercmp and add additional tests
This vercmp issue has been a sticking point but this should resolve many of
the issues that have come up. Only a few minor code changes were necessary
to get the behavior we desired, and this version appears to beat any other
vercmp rendition on a few more cases added in this commit.

This commit passes all 58 vercmp tests currently out there. Other 'fixes'
still fail on a few tests, namely these ones:

test: ver1: 1.5.a ver2: 1.5 ret: -1 expected: 1
  ==> FAILURE
test: ver1: 1.5 ver2: 1.5.a ret: 1 expected: -1
  ==> FAILURE
test: ver1: 1.5-1 ver2: 1.5.b ret: 1 expected: -1
  ==> FAILURE
test: ver1: 1.5.b ver2: 1.5-1 ret: -1 expected: 1
  ==> FAILURE
4 of 58 tests failed

Signed-off-by: Dan McGee <dan@archlinux.org>
2008-07-24 22:16:28 -05:00
..
2008-07-22 19:47:01 -05:00
2008-07-15 19:13:30 -05:00
2008-07-13 09:16:55 -05:00
2008-07-15 19:16:42 -05:00
2008-01-27 11:54:25 -06:00
2008-06-04 15:38:47 -05:00
2008-06-04 15:38:47 -05:00
2008-06-04 15:38:47 -05:00
2008-07-19 11:04:38 -05:00
2008-07-13 09:16:55 -05:00
2008-06-04 15:38:47 -05:00
2008-04-10 20:53:28 -05:00
2008-06-04 15:38:47 -05:00
2008-06-03 21:31:31 -05:00
2008-06-03 21:31:31 -05:00
2008-07-24 22:16:28 -05:00
2008-06-04 15:38:47 -05:00
2008-01-27 12:05:33 -06:00
2008-07-15 19:16:42 -05:00
2008-03-10 18:57:36 -05:00