Skip to content

Conversation

@oleibman
Copy link
Collaborator

@oleibman oleibman commented Aug 3, 2025

This came to light while cleaning up ComplexAssert. Many tests are calling _calculateFormulaValue rather than calculateFormula, and, as a result, have to be trimmed before asserting. This PR changes those calls, and does a bit more to simplify the tests. There are a lot of other non-Engineering tests which call _calculateFormulaValue, but none of those need to manipulate the result after the call.

This PR changes only tests, no source code.

This is:

  • a bugfix
  • a new feature
  • refactoring
  • additional unit tests
  • simplify unit tests

Checklist:

  • Changes are covered by unit tests
    • Changes are covered by existing unit tests
    • New unit tests have been added
  • Code style is respected
  • Commit message explains why the change is made (see https://github.com/erlang/otp/wiki/Writing-good-commit-messages)
  • CHANGELOG.md contains a short summary of the change and a link to the pull request if applicable
  • Documentation is updated as necessary

This came to light while cleaning up ComplexAssert. Many tests are calling `_calculateFormulaValue` rather than `calculateFormula`, and, as a result, have to be trimmed before asserting. This PR changes those calls, and does a bit more to simplify the tests. There are a lot of other non-Engineering tests which call `_calculateFormulaValue`, but none of those need to manipulate the result after the test.

This PR changes only tests, no source code.
@oleibman
Copy link
Collaborator Author

oleibman commented Aug 3, 2025

Yet another false positive from Scrutinizer.

@oleibman oleibman added this pull request to the merge queue Aug 3, 2025
Merged via the queue into PHPOffice:master with commit 9a193f2 Aug 3, 2025
13 of 14 checks passed
@oleibman oleibman deleted the calcformulatests branch August 3, 2025 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant