From 3bfc6740c483080b4b4de366a65cb38ca578ca06 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Thu, 28 Apr 2022 01:43:30 -0700 Subject: [PATCH] Add tests for improved `compareCallNumbers` (#2579) --- chrome/content/zotero/xpcom/utilities | 2 +- test/tests/utilities_itemTest.js | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/utilities b/chrome/content/zotero/xpcom/utilities index 2d6e330e28..90f6c8aeda 160000 --- a/chrome/content/zotero/xpcom/utilities +++ b/chrome/content/zotero/xpcom/utilities @@ -1 +1 @@ -Subproject commit 2d6e330e28f1c46482b93a37e8ceee53af74996c +Subproject commit 90f6c8aeda15e1433ac24903440ab470bcfbed4f diff --git a/test/tests/utilities_itemTest.js b/test/tests/utilities_itemTest.js index f5580f7c9d..b193a5fd27 100644 --- a/test/tests/utilities_itemTest.js +++ b/test/tests/utilities_itemTest.js @@ -323,6 +323,21 @@ describe("Zotero.Utilities.Item", function() { 'PJ4519 .B99 A65 1976', ]; checkSort(numbersInOrder); + + numbersInOrder = [ + 'PJ6611.B35 2014', + 'PJ6611 .Z36 2001', + ]; + checkSort(numbersInOrder); + + numbersInOrder = [ + 'PC43 .O95 2016', + 'PC45 .P4 1976', + 'PC4074.7 .P46 2000', + 'PC4075', + 'PC4075 .P69 2001', + ]; + checkSort(numbersInOrder); }); }); });