8026498: Revert: latest runsunspider.js tests contains several bugs
Reviewed-by: sundar, hannesw
Contributed-by: james.laskey@oracle.com
--- a/nashorn/test/script/basic/runsunspider.js Tue Oct 15 17:37:47 2013 +0200
+++ b/nashorn/test/script/basic/runsunspider.js Tue Oct 15 13:14:04 2013 -0300
@@ -205,7 +205,7 @@
return ret;
},
expected: function() {
- return -0.16906933525822856;
+ return -1.3524862408537381;
}
},
{ name: 'access-binary-trees.js',
@@ -213,7 +213,7 @@
return ret;
},
expected: function() {
- return -1;
+ return -4;
}
},
{ name: 'access-fannkuch.js',
@@ -244,7 +244,6 @@
return 230692593;
}
},
- /* Test is broken (not initializing dnaOutputString to "")
{ name: 'regexp-dna.js',
actual: function() {
return dnaOutputString;
@@ -253,7 +252,6 @@
return "agggtaaa|tttaccct 0\n[cgt]gggtaaa|tttaccc[acg] 9\na[act]ggtaaa|tttacc[agt]t 27\nag[act]gtaaa|tttac[agt]ct 24\nagg[act]taaa|ttta[agt]cct 30\naggg[acg]aaa|ttt[cgt]ccct 9\nagggt[cgt]aa|tt[acg]accct 12\nagggta[cgt]a|t[acg]taccct 9\nagggtaa[cgt]|[acg]ttaccct 15\n";
}
},
- */
{ name: 'math-cordic.js',
actual: function() {
return total;