Lines Matching refs:Decimal

3 T('Decimal', function () {
5 Decimal.config({
17 T.assertEqualProps(coefficient, exponent, sign, new Decimal(n));
100 T.assertEqual(expected, new Decimal(n).valueOf());
167 tx(function () {new Decimal(' NaN')}, "' NaN'");
168 tx(function () {new Decimal('NaN ')}, "'NaN '");
169 tx(function () {new Decimal(' NaN ')}, "' NaN '");
170 tx(function () {new Decimal(' -NaN')}, "' -NaN'");
171 tx(function () {new Decimal(' +NaN')}, "' +NaN'");
172 tx(function () {new Decimal('-NaN ')}, "'-NaN '");
173 tx(function () {new Decimal('+NaN ')}, "'+NaN '");
174 tx(function () {new Decimal('.NaN')}, "'.NaN'");
175 tx(function () {new Decimal('NaN.')}, "'NaN.'");
183 tx(function () {new Decimal(' Infinity')}, "' Infinity '");
184 tx(function () {new Decimal('Infinity ')}, "'Infinity '");
185 tx(function () {new Decimal(' Infinity ')}, "' Infinity '");
186 tx(function () {new Decimal(' -Infinity')}, "' -Infinity'");
187 tx(function () {new Decimal(' +Infinity')}, "' +Infinity'");
188 tx(function () {new Decimal('.Infinity')}, "'.Infinity'");
189 tx(function () {new Decimal('Infinity.')}, "'Infinity.'");
202 tx(function () {new Decimal(' 0')}, "' 0'");
203 tx(function () {new Decimal('0 ')}, "'0 '");
204 tx(function () {new Decimal(' 0 ')}, "' 0 '");
205 tx(function () {new Decimal('0-')}, "'0-'");
206 tx(function () {new Decimal(' -0')}, "' -0'");
207 tx(function () {new Decimal('-0 ')}, "'-0 '");
208 tx(function () {new Decimal('+0 ')}, "'+0 '");
209 tx(function () {new Decimal(' +0')}, "' +0'");
210 tx(function () {new Decimal(' .0')}, "' .0'");
211 tx(function () {new Decimal('0. ')}, "'0. '");
212 tx(function () {new Decimal('+-0')}, "'+-0'");
213 tx(function () {new Decimal('-+0')}, "'-+0'");
214 tx(function () {new Decimal('--0')}, "'--0'");
215 tx(function () {new Decimal('++0')}, "'++0'");
216 tx(function () {new Decimal('.-0')}, "'.-0'");
217 tx(function () {new Decimal('.+0')}, "'.+0'");
218 tx(function () {new Decimal('0 .')}, "'0 .'");
219 tx(function () {new Decimal('. 0')}, "'. 0'");
220 tx(function () {new Decimal('..0')}, "'..0'");
221 tx(function () {new Decimal('+.-0')}, "'+.-0'");
222 tx(function () {new Decimal('-.+0')}, "'-.+0'");
223 tx(function () {new Decimal('+. 0')}, "'+. 0'");
224 tx(function () {new Decimal('.0.')}, "'.0.'");
244 tx(function () {new Decimal(' 1')}, "' 1'");
245 tx(function () {new Decimal('1 ')}, "'1 '");
246 tx(function () {new Decimal(' 1 ')}, "' 1 '");
247 tx(function () {new Decimal('1-')}, "'1-'");
248 tx(function () {new Decimal(' -1')}, "' -1'");
249 tx(function () {new Decimal('-1 ')}, "'-1 '");
250 tx(function () {new Decimal(' +1')}, "' +1'");
251 tx(function () {new Decimal('+1 ')}, "'+1'");
252 tx(function () {new Decimal('.1.')}, "'.1.'");
253 tx(function () {new Decimal('+-1')}, "'+-1'");
254 tx(function () {new Decimal('-+1')}, "'-+1'");
255 tx(function () {new Decimal('--1')}, "'--1'");
256 tx(function () {new Decimal('++1')}, "'++1'");
257 tx(function () {new Decimal('.-1')}, "'.-1'");
258 tx(function () {new Decimal('.+1')}, "'.+1'");
259 tx(function () {new Decimal('1 .')}, "'1 .'");
260 tx(function () {new Decimal('. 1')}, "'. 1'");
261 tx(function () {new Decimal('..1')}, "'..1'");
262 tx(function () {new Decimal('+.-1')}, "'+.-1'");
263 tx(function () {new Decimal('-.+1')}, "'-.+1'");
264 tx(function () {new Decimal('+. 1')}, "'+. 1'");
265 tx(function () {new Decimal('-. 1')}, "'-. 1'");
266 tx(function () {new Decimal('1..')}, "'1..'");
267 tx(function () {new Decimal('+1..')}, "'+1..'");
268 tx(function () {new Decimal('-1..')}, "'-1..'");
269 tx(function () {new Decimal('-.1.')}, "'-.1.'");
270 tx(function () {new Decimal('+.1.')}, "'+.1.'");
271 tx(function () {new Decimal('.-10.')}, "'.-10.'");
272 tx(function () {new Decimal('.+10.')}, "'.+10.'");
273 tx(function () {new Decimal('. 10.')}, "'. 10.'");
281 tx(function () {new Decimal(void 0)}, "void 0");
282 tx(function () {new Decimal('undefined')}, "'undefined'");
283 tx(function () {new Decimal(null)}, "null");
284 tx(function () {new Decimal('null')}, "'null'");
285 tx(function () {new Decimal({})}, "{}");
286 tx(function () {new Decimal([])}, "[]");
287 tx(function () {new Decimal(function () {})}, "function () {}");
288 tx(function () {new Decimal(new Date)}, "new Date");
289 tx(function () {new Decimal(new RegExp)}, "new RegExp");
290 tx(function () {new Decimal('')}, "''");
291 tx(function () {new Decimal(' ')}, "' '");
292 tx(function () {new Decimal('nan')}, "'nan'");
293 tx(function () {new Decimal('23e')}, "'23e'");
294 tx(function () {new Decimal('e4')}, "'e4'");
295 tx(function () {new Decimal('ff')}, "'ff'");
296 tx(function () {new Decimal('0xg')}, "'oxg'");
297 tx(function () {new Decimal('0Xfi')}, "'0Xfi'");
298 tx(function () {new Decimal('++45')}, "'++45'");
299 tx(function () {new Decimal('--45')}, "'--45'");
300 tx(function () {new Decimal('9.99--')}, "'9.99--'");
301 tx(function () {new Decimal('9.99++')}, "'9.99++'");
302 tx(function () {new Decimal('0 0')}, "'0 0'");