Browse Source

numconv test cases

pull/1/head
Sami Vaarala 12 years ago
parent
commit
4b036bf54a
  1. 29594
      testcases/test-numconv-tostring-gen.js
  2. 18
      testcases/test-numconv-tostring-misc.js

29594
testcases/test-numconv-tostring-gen.js

File diff suppressed because it is too large

18
testcases/test-numconv-tostring-misc.js

@ -0,0 +1,18 @@
/*===
1e+23
===*/
function miscTest() {
// Burger, Dybvig: "Printing Floating-Point Numbers Quickly
// and Accurately", section 3.1. IEEE round-to-even allows
// this to be printed as "1e+23" instead of "9.999...".
print(1e23);
}
try {
miscTest();
} catch (e) {
print(e);
}
Loading…
Cancel
Save