Skip to content

Commit 3089c39

Browse files
committed
add test
1 parent 54793f2 commit 3089c39

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

test/index.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import "./tests/operations/ParseIPRange";
6161
import "./tests/operations/PowerSet";
6262
import "./tests/operations/Regex";
6363
import "./tests/operations/Register";
64+
import "./tests/operations/RemoveLetterAccents";
6465
import "./tests/operations/Rotate";
6566
import "./tests/operations/SeqUtils";
6667
import "./tests/operations/SetDifference";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
/**
3+
* Remove Letter Accents tests.
4+
*
5+
* @author Klaxon [[email protected]]
6+
* @copyright Crown Copyright 2017
7+
* @license Apache-2.0
8+
*/
9+
import TestRegister from "../../TestRegister";
10+
11+
TestRegister.addTests([
12+
{
13+
name: "Remove Letter Accents",
14+
input: "\xe0, \xe8, \xec, \xf2, \xf9 \xc0, \xc8, \xcc, \xd2, \xd9\n\xe1, \xe9, \xed, \xf3, \xfa, \xfd \xc1, \xc9, \xcd, \xd3, \xda, \xdd\n\xe2, \xea, \xee, \xf4, \xfb \xc2, \xca, \xce, \xd4, \xdb\n\xe3, \xf1, \xf5 \xc3, \xd1, \xd5\n\xe4, \xeb, \xef, \xf6, \xfc, \xff \xc4, \xcb, \xcf, \xd6, \xdc, \u0178\n\xe5, \xc5",
15+
expectedOutput: "a, e, i, o, u A, E, I, O, U\na, e, i, o, u, y A, E, I, O, U, Y\na, e, i, o, u A, E, I, O, U\na, n, o A, N, O\na, e, i, o, u, y A, E, I, O, U, Y\na, A",
16+
recipeConfig: [
17+
{
18+
"op": "Remove Letter Accents",
19+
"args": []
20+
},
21+
],
22+
},
23+
]);

0 commit comments

Comments
 (0)