Make grow formulas faster and more accurate. (#1044)

This commit is contained in:
David Walker
2024-01-31 16:27:31 -08:00
committed by GitHub
parent b6b4788845
commit 55e21d1e19
5 changed files with 184 additions and 140 deletions

View File

@@ -477,7 +477,10 @@ describe("Stock Market Tests", function () {
const initValue = initialValues[stock.symbol];
expect(initValue.price).not.toEqual(stock.price);
if (initValue.otlkMag === stock.otlkMag && initValue.b === stock.b) {
throw new Error("expected either price or otlkMag to be different");
throw new Error(
"expected either price or otlkMag to be different: " +
`stock: ${stockName} otlkMag: ${stock.otlkMag} b: ${stock.b}`,
);
}
}
});