Skip to content

Commit 6aee471

Browse files
committed
Move escape sequences tests to the right suite
1 parent 63267cf commit 6aee471

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

fluent-syntax/test/serializer_test.js

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,26 @@ suite('Serialize resource', function() {
467467
assert.equal(pretty(input), input);
468468
});
469469

470+
test('Escaped special char in TextElement', function() {
471+
const input = ftl`
472+
foo = \\{Escaped}
473+
`;
474+
assert.equal(pretty(input), input);
475+
});
476+
477+
test('Escaped special char in StringLiteral', function() {
478+
const input = ftl`
479+
foo = { "Escaped \\" quote" }
480+
`;
481+
assert.equal(pretty(input), input);
482+
});
483+
484+
test('Unicode escape sequence', function() {
485+
const input = ftl`
486+
foo = \\u0065
487+
`;
488+
assert.equal(pretty(input), input);
489+
});
470490
});
471491

472492
suite('Serialize expression', function() {
@@ -614,25 +634,4 @@ suite('Serialize padding around comments', function() {
614634
assert.equal(pretty(input), input);
615635
assert.equal(pretty(input), input);
616636
});
617-
618-
test('Escaped special char in TextElement', function() {
619-
const input = ftl`
620-
foo = \\{Escaped}
621-
`;
622-
assert.equal(pretty(input), input);
623-
});
624-
625-
test('Escaped special char in StringLiteral', function() {
626-
const input = ftl`
627-
foo = { "Escaped \\" quote" }
628-
`;
629-
assert.equal(pretty(input), input);
630-
});
631-
632-
test('Unicode escape sequence', function() {
633-
const input = ftl`
634-
foo = \\u0065
635-
`;
636-
assert.equal(pretty(input), input);
637-
});
638637
});

0 commit comments

Comments
 (0)