refactor: perform dimensional analysis and numerical evaluation in same pass (WIP) #1565
Annotations
10 errors, 1 warning, and 1 notice
[chromium] › test_basic.spec.mjs:754:1 › Test function notation with integrals:
tests/test_basic.spec.mjs#L769
1) [chromium] › test_basic.spec.mjs:754:1 › Test function notation with integrals ────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "\\frac{b \\cdot h^{3}}{12}"
Received: "0.04166666666666666666666666666666666666666666666666666666666666667 \\cdot b \\cdot h^{3.0} - 0.04166666666666666666666666666666666666666666666666666666666666667 \\cdot b \\cdot \\left(- h\\right)^{3.0}"
767 |
768 | let content = await page.textContent('#result-value-1');
> 769 | expect(content).toBe('\\frac{b \\cdot h^{3}}{12}');
| ^
770 | content = await page.textContent('#result-value-2');
771 | expect(parseLatexFloat(content)).toBeCloseTo(2, precision);
772 | content = await page.textContent('#result-value-4');
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_basic.spec.mjs:769:19
|
[chromium] › test_basic.spec.mjs:754:1 › Test function notation with integrals:
tests/test_basic.spec.mjs#L769
1) [chromium] › test_basic.spec.mjs:754:1 › Test function notation with integrals ────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "\\frac{b \\cdot h^{3}}{12}"
Received: "0.04166666666666666666666666666666666666666666666666666666666666667 \\cdot b \\cdot h^{3.0} - 0.04166666666666666666666666666666666666666666666666666666666666667 \\cdot b \\cdot \\left(- h\\right)^{3.0}"
767 |
768 | let content = await page.textContent('#result-value-1');
> 769 | expect(content).toBe('\\frac{b \\cdot h^{3}}{12}');
| ^
770 | content = await page.textContent('#result-value-2');
771 | expect(parseLatexFloat(content)).toBeCloseTo(2, precision);
772 | content = await page.textContent('#result-value-4');
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_basic.spec.mjs:769:19
|
[chromium] › test_basic.spec.mjs:754:1 › Test function notation with integrals:
tests/test_basic.spec.mjs#L769
1) [chromium] › test_basic.spec.mjs:754:1 › Test function notation with integrals ────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "\\frac{b \\cdot h^{3}}{12}"
Received: "0.04166666666666666666666666666666666666666666666666666666666666667 \\cdot b \\cdot h^{3.0} - 0.04166666666666666666666666666666666666666666666666666666666666667 \\cdot b \\cdot \\left(- h\\right)^{3.0}"
767 |
768 | let content = await page.textContent('#result-value-1');
> 769 | expect(content).toBe('\\frac{b \\cdot h^{3}}{12}');
| ^
770 | content = await page.textContent('#result-value-2');
771 | expect(parseLatexFloat(content)).toBeCloseTo(2, precision);
772 | content = await page.textContent('#result-value-4');
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_basic.spec.mjs:769:19
|
[chromium] › test_calc.spec.mjs:16:1 › test basic calculus:
tests/test_calc.spec.mjs#L76
2) [chromium] › test_calc.spec.mjs:16:1 › test basic calculus ────────────────────────────────────
TimeoutError: page.textContent: Timeout 120000ms exceeded.
Call log:
- waiting for locator('#result-value-0')
74 | await page.waitForSelector('text=Updating...', {state: 'detached'});
75 |
> 76 | let content = await page.textContent('#result-value-0');
| ^
77 | expect(parseLatexFloat(content)).toBeCloseTo(2, precision);
78 | content = await page.textContent('#result-value-1');
79 | expect(content).toBe(`- \\frac{a^{2}}{2} + \\frac{b^{2}}{2}`);
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_calc.spec.mjs:76:28
|
[chromium] › test_calc.spec.mjs:16:1 › test basic calculus:
tests/test_calc.spec.mjs#L76
2) [chromium] › test_calc.spec.mjs:16:1 › test basic calculus ────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.textContent: Timeout 120000ms exceeded.
Call log:
- waiting for locator('#result-value-0')
74 | await page.waitForSelector('text=Updating...', {state: 'detached'});
75 |
> 76 | let content = await page.textContent('#result-value-0');
| ^
77 | expect(parseLatexFloat(content)).toBeCloseTo(2, precision);
78 | content = await page.textContent('#result-value-1');
79 | expect(content).toBe(`- \\frac{a^{2}}{2} + \\frac{b^{2}}{2}`);
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_calc.spec.mjs:76:28
|
[chromium] › test_calc.spec.mjs:16:1 › test basic calculus:
tests/test_calc.spec.mjs#L76
2) [chromium] › test_calc.spec.mjs:16:1 › test basic calculus ────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.textContent: Timeout 120000ms exceeded.
Call log:
- waiting for locator('#result-value-0')
74 | await page.waitForSelector('text=Updating...', {state: 'detached'});
75 |
> 76 | let content = await page.textContent('#result-value-0');
| ^
77 | expect(parseLatexFloat(content)).toBeCloseTo(2, precision);
78 | content = await page.textContent('#result-value-1');
79 | expect(content).toBe(`- \\frac{a^{2}}{2} + \\frac{b^{2}}{2}`);
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_calc.spec.mjs:76:28
|
[chromium] › test_calc.spec.mjs:360:1 › Test derivative substitution order:
tests/test_calc.spec.mjs#L369
3) [chromium] › test_calc.spec.mjs:360:1 › Test derivative substitution order ────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "2 \\cdot L"
Received: "2.0 \\cdot L^{1.0}"
367 |
368 | let content = await page.textContent('#result-value-0');
> 369 | expect(content).toBe('2 \\cdot L');
| ^
370 | });
371 |
372 | test('Test numerical integral and derivative using interpolation function', async () => {
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_calc.spec.mjs:369:19
|
[chromium] › test_calc.spec.mjs:360:1 › Test derivative substitution order:
tests/test_calc.spec.mjs#L369
3) [chromium] › test_calc.spec.mjs:360:1 › Test derivative substitution order ────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "2 \\cdot L"
Received: "2.0 \\cdot L^{1.0}"
367 |
368 | let content = await page.textContent('#result-value-0');
> 369 | expect(content).toBe('2 \\cdot L');
| ^
370 | });
371 |
372 | test('Test numerical integral and derivative using interpolation function', async () => {
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_calc.spec.mjs:369:19
|
[chromium] › test_calc.spec.mjs:360:1 › Test derivative substitution order:
tests/test_calc.spec.mjs#L369
3) [chromium] › test_calc.spec.mjs:360:1 › Test derivative substitution order ────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "2 \\cdot L"
Received: "2.0 \\cdot L^{1.0}"
367 |
368 | let content = await page.textContent('#result-value-0');
> 369 | expect(content).toBe('2 \\cdot L');
| ^
370 | });
371 |
372 | test('Test numerical integral and derivative using interpolation function', async () => {
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_calc.spec.mjs:369:19
|
[chromium] › test_generated_code.spec.mjs:351:1 › Numpy function rewrite fix:
tests/test_generated_code.spec.mjs#L361
4) [chromium] › test_generated_code.spec.mjs:351:1 › Numpy function rewrite fix, sympy #25514 ────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
@@ -13,9 +13,9 @@
-------
float
Return value is unitless.
"""
- result = (numpy.cos(x)**(-1.0))**2
+ result = (numpy.cos(x)**(-1.0))**2.0
return result
↵
359 | let content = await page.locator('code').textContent();
360 |
> 361 | expect(content).toBe(`import numpy
| ^
362 |
363 | def y(x):
364 | """
at /home/runner/work/EngineeringPaper.xyz/EngineeringPaper.xyz/tests/test_generated_code.spec.mjs:361:19
|
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "screenshots", "test-results".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
🎭 Playwright Run Summary
16 failed
[chromium] › test_basic.spec.mjs:754:1 › Test function notation with integrals ─────────────────
[chromium] › test_calc.spec.mjs:16:1 › test basic calculus ─────────────────────────────────────
[chromium] › test_calc.spec.mjs:360:1 › Test derivative substitution order ─────────────────────
[chromium] › test_generated_code.spec.mjs:351:1 › Numpy function rewrite fix, sympy #25514 ─────
[chromium] › test_matrix_calc.spec.mjs:24:1 › Indefininte integral ─────────────────────────────
[chromium] › test_matrix_calc.spec.mjs:33:1 › Derivative ───────────────────────────────────────
[chromium] › test_system_solve.spec.mjs:193:1 › Test solving system of 3 equations ─────────────
[chromium] › test_system_solve.spec.mjs:244:1 › Test case where all solutions don't have results for the same variables
[firefox] › test_basic.spec.mjs:754:1 › Test function notation with integrals ──────────────────
[firefox] › test_calc.spec.mjs:16:1 › test basic calculus ──────────────────────────────────────
[firefox] › test_calc.spec.mjs:360:1 › Test derivative substitution order ──────────────────────
[firefox] › test_generated_code.spec.mjs:351:1 › Numpy function rewrite fix, sympy #25514 ──────
[firefox] › test_matrix_calc.spec.mjs:24:1 › Indefininte integral ──────────────────────────────
[firefox] › test_matrix_calc.spec.mjs:33:1 › Derivative ────────────────────────────────────────
[firefox] › test_system_solve.spec.mjs:193:1 › Test solving system of 3 equations ──────────────
[firefox] › test_system_solve.spec.mjs:244:1 › Test case where all solutions don't have results for the same variables
5 flaky
[chromium] › test_matrix_functions.spec.mjs:213:1 › Test min/max of a row vector with incompatible units
[chromium] › test_matrix_inverse.spec.mjs:82:1 › Matrix inverse with inconsistent units ────────
[firefox] › test_file_save_open.spec.mjs:6:1 › Test local file save and open ───────────────────
[firefox] › test_file_save_open.spec.mjs:138:1 › Test opening file with results and syntax error
[firefox] › test_matrix_addition.spec.mjs:15:1 › Matrix addition ───────────────────────────────
9 skipped
748 passed (28.2m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
screenshots
|
15.9 MB |
|
test-results
Expired
|
669 MB |
|