You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmp.js 444B

1234567891011121314151617181920212223242526272829
  1. var cmp = require('../');
  2. var test = require('tape');
  3. var versions = [
  4. '1.2.3',
  5. '4.11.6',
  6. '4.2.0',
  7. '1.5.19',
  8. '1.5.5',
  9. '4.1.3',
  10. '2.3.1',
  11. '10.5.5',
  12. '11.3.0'
  13. ];
  14. test('cmp', function (t) {
  15. t.plan(1);
  16. t.deepEqual(versions.sort(cmp), [
  17. '1.2.3',
  18. '1.5.5',
  19. '1.5.19',
  20. '2.3.1',
  21. '4.1.3',
  22. '4.2.0',
  23. '4.11.6',
  24. '10.5.5',
  25. '11.3.0'
  26. ]);
  27. });