@@ -148,13 +148,13 @@ suite('typing with auto-replaces', function () {
148
148
149
149
suite ( 'MathspeakShorthand' , function ( ) {
150
150
test ( 'fractions' , function ( ) {
151
- // Testing singular numeric fractions from 1/2 to 1/10
151
+ // Testing singular numeric fractions from 1/2 to 1/112, and 1/100
152
152
mq . latex ( '\\frac{1}{2}' ) ;
153
153
assertMathspeak ( '1 half' ) ;
154
154
mq . latex ( '\\frac{1}{3}' ) ;
155
155
assertMathspeak ( '1 third' ) ;
156
156
mq . latex ( '\\frac{1}{4}' ) ;
157
- assertMathspeak ( '1 quarter ' ) ;
157
+ assertMathspeak ( '1 fourth ' ) ;
158
158
mq . latex ( '\\frac{1}{5}' ) ;
159
159
assertMathspeak ( '1 fifth' ) ;
160
160
mq . latex ( '\\frac{1}{6}' ) ;
@@ -166,15 +166,21 @@ suite('typing with auto-replaces', function () {
166
166
mq . latex ( '\\frac{1}{9}' ) ;
167
167
assertMathspeak ( '1 ninth' ) ;
168
168
mq . latex ( '\\frac{1}{10}' ) ;
169
- assertMathspeak ( 'StartFraction, 1 Over 10, EndFraction' ) ;
170
-
171
- // Testing plural numeric fractions from 31/2 to 31/10
169
+ assertMathspeak ( '1 tenth' ) ;
170
+ mq . latex ( '\\frac{1}{11}' ) ;
171
+ assertMathspeak ( '1 eleventh' ) ;
172
+ mq . latex ( '\\frac{1}{12}' ) ;
173
+ assertMathspeak ( '1 twelfth' ) ;
174
+ mq . latex ( '\\frac{1}{100}' ) ;
175
+ assertMathspeak ( '1 hundredth' ) ;
176
+
177
+ // Testing plural numeric fractions from 31/2 to 31/12, and 31/100
172
178
mq . latex ( '\\frac{31}{2}' ) ;
173
179
assertMathspeak ( '31 halves' ) ;
174
180
mq . latex ( '\\frac{31}{3}' ) ;
175
181
assertMathspeak ( '31 thirds' ) ;
176
182
mq . latex ( '\\frac{31}{4}' ) ;
177
- assertMathspeak ( '31 quarters ' ) ;
183
+ assertMathspeak ( '31 fourths ' ) ;
178
184
mq . latex ( '\\frac{31}{5}' ) ;
179
185
assertMathspeak ( '31 fifths' ) ;
180
186
mq . latex ( '\\frac{31}{6}' ) ;
@@ -186,15 +192,21 @@ suite('typing with auto-replaces', function () {
186
192
mq . latex ( '\\frac{31}{9}' ) ;
187
193
assertMathspeak ( '31 ninths' ) ;
188
194
mq . latex ( '\\frac{31}{10}' ) ;
189
- assertMathspeak ( 'StartFraction, 31 Over 10, EndFraction' ) ;
195
+ assertMathspeak ( '31 tenths' ) ;
196
+ mq . latex ( '\\frac{31}{11}' ) ;
197
+ assertMathspeak ( '31 elevenths' ) ;
198
+ mq . latex ( '\\frac{31}{12}' ) ;
199
+ assertMathspeak ( '31 twelfths' ) ;
200
+ mq . latex ( '\\frac{31}{100}' ) ;
201
+ assertMathspeak ( '31 hundredths' ) ;
190
202
191
203
// Fractions with negative numerators should be shortened
192
204
mq . latex ( '\\frac{-1}{2}' ) ;
193
205
assertMathspeak ( 'negative 1 half' ) ;
194
206
mq . latex ( '\\frac{-3}{2}' ) ;
195
207
assertMathspeak ( 'negative 3 halves' ) ;
196
208
mq . latex ( '-\\frac{3}{4}' ) ;
197
- assertMathspeak ( 'negative 3 quarters ' ) ;
209
+ assertMathspeak ( 'negative 3 fourths ' ) ;
198
210
199
211
// Fractions with negative denominators should not be shortened
200
212
mq . latex ( '\\frac{1}{-2}' ) ;
0 commit comments