Skip to content

Commit 01260bd

Browse files
authored
Update assertion for expression table specification
1 parent 0e497c7 commit 01260bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/main_test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ async function runTest(rowData) {
4646
const expressionTableTextSelector = await page.locator('.expression-text[id="0"]').waitHandle();
4747
const expressionTableSpec = await expressionTableTextSelector?.evaluate(el => el.textContent);
4848
console.log('The expression table specification is', expressionTableSpec);
49-
assert(expressionTableSpec === trueSpec, `Expected expression table spec: ${trueSpec}, but got: ${expressionTableSpec}`);
49+
const roughlyEqual = (a, b) => b <= a + 1 && b >= a-1
50+
assert(roughlyEqual(expressionTableSpec, trueSpec), `Expected expression table spec: ${trueSpec}, but got: ${expressionTableSpec}`);
5051

5152
const analysisSelector = '.analysis[id="0"]'
5253
const initialValue = '...'

0 commit comments

Comments
 (0)