Skip to content

Commit 6d85b72

Browse files
authored
Add new query normalizer tests.
1 parent 40d7e53 commit 6d85b72

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/QueryNormalizerTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function getQueries(): array
5959
return [
6060
['5+3', '5 + 3'],
6161
['123456789', '123456789'],
62+
['1.05*12000', '1.05 * 12,000'],
6263
['(5+9)*5', '(5 + 9) * 5'],
6364
['5+3*(2-1)', '5 + 3 * (2-1'],
6465
['(10.2+0.5*(2-0.4))*2+(2.1*4)', '(10.2+0.5 * (2-0.4)) * 2 + (2.1 * 4)'],
@@ -72,12 +73,20 @@ public function getQueries(): array
7273
['((5*x+1)/(2*x-4))-5', '((5x+1)/(2x-4))-5'],
7374
['(3*x*5-3*x^3)*(x^3-2+sin(x))/(cos(x)*x-sin(x)*x^3)', '(3x*5-3x^3)*(x^3-2+sin(x))/(cos(x)*x-sin(x)*x^3)'],
7475
['(x^2-4*x+4)/(4*x^3-2*x^4)', '(x^2-4 x+4)/(4 x^3-2 x^4)'],
76+
['sqrt(3^2+4^2)', 'sqrt (3^2 + 4^2)'],
77+
['5*x-3 zebry', '5x - 3 zebry'],
78+
['5*x-3zebry', '5x - 3zebry'],
79+
['22/6', '\frac{22}{6}'],
80+
['22/(2/3)', '\frac{22}{\frac{2}{3}}'],
7581
['INF', 'nekonečno'],
7682
['INF^2', 'nekonečno^2'],
7783
['INF+INF', 'nekonečno+inf'],
7884
['INF-0', '∞-0'],
7985
['INF-INF', 'INF-inf'],
8086
['2^4', '2˘4'],
87+
['16/72 na 8 míst', '16/72 na 8 míst'],
88+
['PI', '\pi'],
89+
['PI', '\Pi'],
8190
['PI', 'π'],
8291
['6', 'šest'],
8392
['5+3*2', 'pět plus tři krát dva'],

0 commit comments

Comments
 (0)