Skip to content

Commit 79f97ba

Browse files
committed
Add test
1 parent 9135b72 commit 79f97ba

29 files changed

Lines changed: 123 additions & 81 deletions

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ braille: ⠀⠁⠂⠃⠄⠅⠆⠇⠈⠉⠊⠋⠌⠍⠎⠏⠐⠑⠒⠓⠔⠕⠖
7171

7272
수학 수식은 LaTeX 형식의 input도 테스트한다. 기존 엔트리의 LaTeX 버전을 추가하는 방식이다:
7373

74-
- 형식: `$\<LaTeX 수식>$` (앞에 `$\`, 뒤에 `$`)
74+
- 형식: `$<LaTeX 수식>$` (앞에 `$`, 뒤에 `$`)
7575
- 동일한 `internal`/`expected`/`unicode`를 공유
7676
- `"note": "LaTeX"` 표기
7777
- **기존 예제의 변환만** — 새로운 수식을 만들지 않는다

test_cases/korean/rule_47.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
"expected": "602512609",
66
"unicode": "⠼⠙⠌⠼⠉"
77
},
8+
{
9+
"input": "¾",
10+
"internal": "#d/#c",
11+
"expected": "602512609",
12+
"unicode": "⠼⠙⠌⠼⠉"
13+
},
814
{
915
"input": "$\\frac{3}{4}$",
1016
"internal": "#d/#c",
@@ -26,11 +32,18 @@
2632
"note": "LaTeX"
2733
},
2834
{
29-
"input": "$3\\frac{1}{6}$",
35+
"input": "3⅙",
3036
"internal": "#c#f/#a",
3137
"expected": "609601112601",
3238
"unicode": "⠼⠉⠼⠋⠌⠼⠁"
3339
},
40+
{
41+
"input": "$3\\frac{1}{6}$",
42+
"internal": "#c#f/#a",
43+
"expected": "609601112601",
44+
"unicode": "⠼⠉⠼⠋⠌⠼⠁",
45+
"note": "LaTeX"
46+
},
3447
{
3548
"input": "학생들 가운데 $\\frac{3}{5}$은 피자를 주문했고, $\\frac{2}{5}$는 햄버거를 주문했다.",
3649
"internal": "ja,r7i!`$gin`#e/#cz`do.\"!`.meg`jr/@u\"`#e/#b`cz`jr5~s@s\"!`.meg`jr/i4",

test_cases/math/math_15.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"unicode": "⠭⠀⠸⠡⠀⠽⠒⠒⠭⠘⠼⠉⠢⠽"
3737
},
3838
{
39-
"input": "$\\x ⊗ y=x^3+y$",
39+
"input": "$x ⊗ y=x^3+y$",
4040
"internal": "x`_*`y33x^#c5y",
4141
"expected": "4505633061181845246093461",
4242
"unicode": "⠭⠀⠸⠡⠀⠽⠒⠒⠭⠘⠼⠉⠢⠽",
@@ -79,7 +79,7 @@
7979
"unicode": "⠭⠀⠸⠴⠴⠀⠽⠒⠒⠼⠋⠭⠽⠔⠼⠑⠽⠢⠼⠃⠽⠘⠼⠃"
8080
},
8181
{
82-
"input": "$\\x ⦾ y=6xy-5y+2y^2$",
82+
"input": "$x ⦾ y=6xy-5y+2y^2$",
8383
"internal": "x`_00`y33#fxy9#ey5#by^#b",
8484
"expected": "45056525206118186011456120601761346036124603",
8585
"unicode": "⠭⠀⠸⠴⠴⠀⠽⠒⠒⠼⠋⠭⠽⠔⠼⠑⠽⠢⠼⠃⠽⠘⠼⠃",
@@ -110,7 +110,7 @@
110110
"unicode": "⠭⠀⠸⠶⠀⠽⠒⠒⠭⠘⠼⠃⠽⠢⠼⠛⠭⠽⠔⠼⠉⠽⠭"
111111
},
112112
{
113-
"input": "$\\x□y=x^2y+7xy-3yx$",
113+
"input": "$x□y=x^2y+7xy-3yx$",
114114
"internal": "x`_7`y33x^#by5#gxy9#cyx",
115115
"expected": "450565406118184524603613460274561206096145",
116116
"unicode": "⠭⠀⠸⠶⠀⠽⠒⠒⠭⠘⠼⠃⠽⠢⠼⠛⠭⠽⠔⠼⠉⠽⠭",

test_cases/math/math_16.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"unicode": "⠼⠁⠁⠚⠁⠰⠦⠼⠃⠴"
77
},
88
{
9-
"input": "$\\1101_{(2)}$",
9+
"input": "$1101_{(2)}$",
1010
"internal": "#aaja;8#b0",
1111
"expected": "6011261483860352",
1212
"unicode": "⠼⠁⠁⠚⠁⠰⠦⠼⠃⠴",
@@ -19,7 +19,7 @@
1919
"unicode": "⠼⠉⠃⠙⠰⠦⠼⠑⠴"
2020
},
2121
{
22-
"input": "$\\324_{(5)}$",
22+
"input": "$324_{(5)}$",
2323
"internal": "#cbd;8#e0",
2424
"expected": "6093254838601752",
2525
"unicode": "⠼⠉⠃⠙⠰⠦⠼⠑⠴",
@@ -32,7 +32,7 @@
3232
"unicode": "⠕⠨⠟⠘⠎⠃⠺⠀⠠⠍⠀⠀⠼⠁⠁⠚⠁⠰⠦⠼⠃⠴"
3333
},
3434
{
35-
"input": "$\\1010_2$",
35+
"input": "$1010_2$",
3636
"note": "LaTeX",
3737
"internal": "o.q^sbw`,m``#aaja;8#b0",
3838
"expected": "214031241435803213006011261483860352",
@@ -45,7 +45,7 @@
4545
"unicode": "⠥⠨⠟⠘⠎⠃⠺⠀⠠⠍⠀⠀⠼⠉⠃⠙⠰⠦⠼⠑⠴"
4646
},
4747
{
48-
"input": "$\\324_5$",
48+
"input": "$324_5$",
4949
"note": "LaTeX",
5050
"internal": "u.q^sbw`,m``#cbd;8#e0",
5151
"expected": "374031241435803213006093254838601752",

test_cases/math/math_18.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"unicode": "⠼⠓⠘⠼⠃"
77
},
88
{
9-
"input": "$\\8^2$",
9+
"input": "$8^2$",
1010
"internal": "#h^#b",
1111
"expected": "601924603",
1212
"unicode": "⠼⠓⠘⠼⠃",
@@ -19,7 +19,7 @@
1919
"unicode": "⠼⠓⠘⠼⠃"
2020
},
2121
{
22-
"input": "$\\8^{2}$",
22+
"input": "$8^{2}$",
2323
"internal": "#h^#b",
2424
"expected": "601924603",
2525
"unicode": "⠼⠓⠘⠼⠃",
@@ -32,7 +32,7 @@
3232
"unicode": "⠉⠘⠼⠃"
3333
},
3434
{
35-
"input": "$\\c^2$",
35+
"input": "$c^2$",
3636
"internal": "c^#b",
3737
"expected": "924603",
3838
"unicode": "⠉⠘⠼⠃",
@@ -45,7 +45,7 @@
4545
"unicode": "⠉⠘⠼⠃"
4646
},
4747
{
48-
"input": "$\\c^{2}$",
48+
"input": "$c^{2}$",
4949
"internal": "c^#b",
5050
"expected": "924603",
5151
"unicode": "⠉⠘⠼⠃",
@@ -58,7 +58,7 @@
5858
"unicode": "⠦⠔⠼⠉⠴⠘⠼⠉"
5959
},
6060
{
61-
"input": "$\\(-3)^3$",
61+
"input": "$(-3)^3$",
6262
"internal": "89#c0^#c",
6363
"expected": "38206095224609",
6464
"unicode": "⠦⠔⠼⠉⠴⠘⠼⠉",
@@ -71,7 +71,7 @@
7171
"unicode": "⠭⠘⠔⠼⠁"
7272
},
7373
{
74-
"input": "$\\x^{-1}$",
74+
"input": "$x^{-1}$",
7575
"internal": "x^9#a",
7676
"expected": "452420601",
7777
"unicode": "⠭⠘⠔⠼⠁",
@@ -84,7 +84,7 @@
8484
"unicode": "⠭⠘⠔⠼⠁"
8585
},
8686
{
87-
"input": "$\\x^{-1}$",
87+
"input": "$x^{-1}$",
8888
"internal": "x^9#a",
8989
"expected": "452420601",
9090
"unicode": "⠭⠘⠔⠼⠁",
@@ -103,7 +103,7 @@
103103
"unicode": "⠭⠘⠷⠼⠛⠢⠼⠊⠾"
104104
},
105105
{
106-
"input": "$\\x^{7+9}$",
106+
"input": "$x^{7+9}$",
107107
"internal": "x^(#g5#i)",
108108
"expected": "452455602734601062",
109109
"unicode": "⠭⠘⠷⠼⠛⠢⠼⠊⠾",
@@ -116,7 +116,7 @@
116116
"unicode": "⠁⠘⠷⠼⠉⠍⠢⠼⠃⠝⠾"
117117
},
118118
{
119-
"input": "$\\a^{3m+2n}$",
119+
"input": "$a^{3m+2n}$",
120120
"internal": "a^(#cm5#bn)",
121121
"expected": "1245560913346032962",
122122
"unicode": "⠁⠘⠷⠼⠉⠍⠢⠼⠃⠝⠾",
@@ -129,7 +129,7 @@
129129
"unicode": "⠭⠘⠼⠚⠲⠉"
130130
},
131131
{
132-
"input": "$\\x^0·^3$",
132+
"input": "$x^{0.3}$",
133133
"internal": "x^#j4c",
134134
"expected": "45246026509",
135135
"unicode": "⠭⠘⠼⠚⠲⠉",
@@ -142,7 +142,7 @@
142142
"unicode": "⠼⠃⠘⠷⠼⠃⠦⠍⠢⠝⠴⠾"
143143
},
144144
{
145-
"input": "$\\2^{2(m+n)}$",
145+
"input": "$2^{2(m+n)}$",
146146
"note": "LaTeX",
147147
"internal": "#b^(#b8m5n0)",
148148
"expected": "6032455603381334295262",
@@ -162,7 +162,7 @@
162162
"unicode": "⠼⠉⠘⠷⠼⠙⠌⠼⠁⠾"
163163
},
164164
{
165-
"input": "$\\3^4⁄^1$",
165+
"input": "$3^{4/1}$",
166166
"note": "LaTeX",
167167
"internal": "#c^(#d/#a)",
168168
"expected": "609245560251260162",

test_cases/math/math_19.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"unicode": "⠭⠰⠼⠃"
77
},
88
{
9-
"input": "$\\x_2$",
9+
"input": "$x_2$",
1010
"internal": "x;#b",
1111
"expected": "4548603",
1212
"unicode": "⠭⠰⠼⠃",
@@ -19,7 +19,7 @@
1919
"unicode": "⠭⠰⠼⠃"
2020
},
2121
{
22-
"input": "$\\x_{2}$",
22+
"input": "$x_{2}$",
2323
"internal": "x;#b",
2424
"expected": "4548603",
2525
"unicode": "⠭⠰⠼⠃",
@@ -32,7 +32,7 @@
3232
"unicode": "⠁⠰⠝"
3333
},
3434
{
35-
"input": "$\\a_n$",
35+
"input": "$a_n$",
3636
"internal": "a;n",
3737
"expected": "14829",
3838
"unicode": "⠁⠰⠝",
@@ -45,7 +45,7 @@
4545
"unicode": "⠁⠰⠝"
4646
},
4747
{
48-
"input": "$\\a_{n}$",
48+
"input": "$a_{n}$",
4949
"internal": "a;n",
5050
"expected": "14829",
5151
"unicode": "⠁⠰⠝",
@@ -58,7 +58,7 @@
5858
"unicode": "⠁⠰⠷⠝⠢⠼⠉⠾"
5959
},
6060
{
61-
"input": "$\\a_{n+3}$",
61+
"input": "$a_{n+3}$",
6262
"internal": "a;(n5#c)",
6363
"expected": "14855293460962",
6464
"unicode": "⠁⠰⠷⠝⠢⠼⠉⠾",
@@ -71,7 +71,7 @@
7171
"unicode": "⠁⠰⠷⠍⠢⠝⠾"
7272
},
7373
{
74-
"input": "$\\a_{m+n}$",
74+
"input": "$a_{m+n}$",
7575
"internal": "a;(m5n)",
7676
"expected": "1485513342962",
7777
"unicode": "⠁⠰⠷⠍⠢⠝⠾",
@@ -84,7 +84,7 @@
8484
"unicode": "⠭⠰⠼⠚⠲⠑"
8585
},
8686
{
87-
"input": "$\\x_0._5$",
87+
"input": "$x_{0.5}$",
8888
"internal": "x;#j4e",
8989
"expected": "454860265017",
9090
"unicode": "⠭⠰⠼⠚⠲⠑",
@@ -97,7 +97,7 @@
9797
"unicode": "⠠⠎⠰⠷⠼⠃⠐⠁⠾"
9898
},
9999
{
100-
"input": "$\\S_{2a}$",
100+
"input": "$S_{2a}$",
101101
"internal": ",s;(#b\"a)",
102102
"expected": "3214485560316162",
103103
"unicode": "⠠⠎⠰⠷⠼⠃⠐⠁⠾",

test_cases/math/math_22.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"unicode": "⠼⠉⠻⠭⠘⠼⠉"
2626
},
2727
{
28-
"input": "$\\^3√x^3$",
28+
"input": "$\\sqrt[3]{x^3}$",
2929
"internal": "#c]x^#c",
3030
"expected": "609594524609",
3131
"unicode": "⠼⠉⠻⠭⠘⠼⠉",
@@ -38,7 +38,7 @@
3838
"unicode": "⠼⠑⠻⠼⠉⠃"
3939
},
4040
{
41-
"input": "$\\^5√32$",
41+
"input": "$\\sqrt[5]{32}$",
4242
"internal": "#e]#cb",
4343
"expected": "6017596093",
4444
"unicode": "⠼⠑⠻⠼⠉⠃",
@@ -70,7 +70,7 @@
7070
"unicode": "⠷⠍⠝⠾⠻⠽"
7171
},
7272
{
73-
"input": "$\\^{mn}√y$",
73+
"input": "$\\sqrt[mn]{y}$",
7474
"note": "LaTeX",
7575
"internal": "(mn)]y",
7676
"expected": "551329625961",

test_cases/math/math_23.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"unicode": "⠷⠁⠢⠃⠊⠾⠈⠉"
2020
},
2121
{
22-
"input": "$\\(a+bi\\overline{)}$",
22+
"input": "$\\overline{(a+bi)}$",
2323
"note": "LaTeX",
2424
"internal": "(a5bi)@c",
2525
"expected": "551343106289",

test_cases/math/math_25.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"unicode": "⠠⠨⠎⠰⠝⠒⠒⠼⠁⠀⠿⠀⠁⠰⠝"
1313
},
1414
{
15-
"input": "$\\Σ(n=1,) a_n$",
15+
"input": "$\\Sigma(n=1,\\infty) a_n$",
1616
"internal": ",.s;n33#a`=`a;n",
1717
"expected": "32401448291818601063014829",
1818
"unicode": "⠠⠨⠎⠰⠝⠒⠒⠼⠁⠀⠿⠀⠁⠰⠝",
@@ -22,6 +22,7 @@
2222
"input": "$\\sum(n/1)$",
2323
"internal": ",.S(N/#A)",
2424
"expected": "32401455291260162",
25-
"unicode": "⠠⠨⠎⠷⠝⠌⠼⠁⠾"
25+
"unicode": "⠠⠨⠎⠷⠝⠌⠼⠁⠾",
26+
"note": "LaTeX"
2627
}
2728
]

test_cases/math/math_3.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"unicode": "⠼⠉⠃⠢⠼⠃⠙⠒⠒⠼⠑⠋"
1313
},
1414
{
15-
"input": "$\\32+24=56$",
15+
"input": "$32+24=56$",
1616
"internal": "#cb5#bd33#ef",
1717
"expected": "609334603251818601711",
1818
"unicode": "⠼⠉⠃⠢⠼⠃⠙⠒⠒⠼⠑⠋",
@@ -25,7 +25,7 @@
2525
"unicode": "⠁⠭⠒⠒⠃"
2626
},
2727
{
28-
"input": "$\\ax=b$",
28+
"input": "$ax=b$",
2929
"internal": "ax33b",
3030
"expected": "14518183",
3131
"unicode": "⠁⠭⠒⠒⠃",

0 commit comments

Comments
 (0)