mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
LibJS: Use Unicode normalization within String.prototype.normalize
This commit is contained in:
parent
19b758ce8b
commit
7fc03e8967
2 changed files with 6 additions and 5 deletions
|
@ -36,8 +36,7 @@ test("Invalid object throws", () => {
|
|||
);
|
||||
});
|
||||
|
||||
// Tests below here are skipped due to the function being a stub at the moment
|
||||
test.skip("Normalization works", () => {
|
||||
test("Normalization works", () => {
|
||||
var s = "\u1E9B\u0323";
|
||||
|
||||
expect(s.normalize("NFC")).toBe("\u1E9B\u0323");
|
||||
|
@ -46,7 +45,7 @@ test.skip("Normalization works", () => {
|
|||
expect(s.normalize("NFKD")).toBe("\u0073\u0323\u0307");
|
||||
});
|
||||
|
||||
test.skip("Default parameter is NFC", () => {
|
||||
test("Default parameter is NFC", () => {
|
||||
var s = "\u1E9B\u0323";
|
||||
|
||||
expect(s.normalize("NFC")).toBe(s.normalize());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue