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QAAA,EAAE,MAAM,QAAA;gBAArB,KAAK,EAAE,MAAM,EAAE,MAAM;KAIhC;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { upperCase, localeUpperCase } from \".\";\n\nconst TEST_CASES: [string, string][] = [\n [\"\", \"\"],\n [\"test\", \"TEST\"],\n [\"test string\", \"TEST STRING\"],\n [\"Test String\", \"TEST STRING\"],\n [\"\\u0131\", \"I\"],\n];\n\nconst LOCALE_TEST_CASES: [string, string, string][] = [[\"i\", \"\\u0130\", \"tr\"]];\n\ndescribe(\"upper case\", () => {\n for (const [input, result] of TEST_CASES) {\n it(`${input} -> ${result}`, () => {\n expect(upperCase(input)).toEqual(result);\n });\n }\n});\n\ndescribe(\"locale upper case\", () => {\n for (const [input, result, locale] of LOCALE_TEST_CASES) {\n it(`${locale}: ${input} -> ${result}`, () => {\n expect(localeUpperCase(input, locale)).toEqual(result);\n });\n }\n});\n"]} |