You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
662 B
JavaScript
30 lines
662 B
JavaScript
require("./base");
|
|
|
|
function runTests() {
|
|
Object.keys(goog.global).forEach(function(key) {
|
|
if (/^test/.test(key) && typeof goog.global[key] === "function") {
|
|
console.log("- " + key);
|
|
var fn = goog.global[key];
|
|
delete goog.global[key];
|
|
try {
|
|
fn();
|
|
} catch (e) {
|
|
console.log("\nERROR: " + e + "\n");
|
|
process.exitCode = 1;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
require("./initial/long");
|
|
require("./initial/long_test");
|
|
|
|
console.log("Testing initial goog.math.long.js ...");
|
|
runTests();
|
|
|
|
require("./recent/long");
|
|
require("./recent/long_test");
|
|
|
|
console.log("\nTesting (more) recent goog.math.long.js ...");
|
|
runTests();
|