Skip to content

Commit 4307ec2

Browse files
committedJan 29, 2025
Modify tokenParser tests to suit CLDR 46
CLDR 46 makes changes to the knda (Kannada) and ta (Tamil) locales effectively disregarding local names for AM/PM (Kannada) and special names for afternoon. The tests have been modified to use "PM".
1 parent 42a4699 commit 4307ec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/datetime/tokenParse.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ test("DateTime.fromFormatExplain() parses zone correctly", () => {
901901

902902
test("DateTime.fromFormatExplain() parses localized string with numberingSystem correctly", () => {
903903
const ex1 = DateTime.fromFormatExplain(
904-
"೦೩-ಏಪ್ರಿಲ್-೨೦೧೯ ೧೨:೨೬:೦೭ ಅಪರಾಹ್ನ Asia/Calcutta",
904+
"೦೩-ಏಪ್ರಿಲ್-೨೦೧೯ ೧೨:೨೬:೦೭ PM Asia/Calcutta",
905905
"dd-MMMM-yyyy hh:mm:ss a z",
906906
{ locale: "kn", numberingSystem: "knda" }
907907
);
@@ -1087,7 +1087,7 @@ test("DateTime.fromFormatExplain() parses localized string with numberingSystem
10871087
expect(keyCount(ex15.result)).toBe(6);
10881088

10891089
const ex16 = DateTime.fromFormatExplain(
1090-
"௦௩-ஏப்ரல்-௨௦௧௯ ௦௪:௦௦:௪௧ பிற்பகல்",
1090+
"௦௩-ஏப்ரல்-௨௦௧௯ ௦௪:௦௦:௪௧ PM",
10911091
"dd-MMMM-yyyy hh:mm:ss a",
10921092
{
10931093
locale: "ta",

0 commit comments

Comments
 (0)