From f2001a48a4e91bc6427a2a63ba9022ceaf1d305d Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 23 Jul 2014 12:52:13 +0200 Subject: Fixed sort algo for additional cases --- core/js/tests/specs/coreSpec.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/js/tests/specs/coreSpec.js') diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js index 265b9deac39..6d40a066de8 100644 --- a/core/js/tests/specs/coreSpec.js +++ b/core/js/tests/specs/coreSpec.js @@ -531,10 +531,14 @@ describe('Core base tests', function() { 'za', 'ghi 1.txt', 'ghi 12.txt', - 'zz' + 'zz', + '15.txt', + '15b.txt' ]; a.sort(OC.Util.naturalSortCompare); expect(a).toEqual([ + '15.txt', + '15b.txt', '123.txt', '124.txt', 'abc', -- cgit v1.2.3