Description
BasicStatementExpressionsTestSuite was added in October 2024, after the summer refactor campaign had finished. It is in better shape than the other post-campaign additions — 170 asserts in 87 facts, 2.0 per fact — but 25 facts still carry three or more asserts.
The offenders cluster in a few families:
- Nested if-else (3 facts at 3 asserts)
- Repeat / while / for "outer valid, inner invalid" variants (9 facts at 3–4 asserts)
- Switch statements (10 facts at 3–4 asserts)
- Try / catch / finally (4 facts at 3 asserts)
This is a moderate, mechanical job — the fact names already describe single scenarios, so in most cases the asserts within a fact are checking several distinct outcomes of that one scenario (e.g. loop counter, accumulator, and exit condition) and need one fact each.
Target: roughly 150–170 facts.
Script Name
BasicStatementExpressionsTestSuite
Steps To The Task
Description
BasicStatementExpressionsTestSuitewas added in October 2024, after the summer refactor campaign had finished. It is in better shape than the other post-campaign additions — 170 asserts in 87 facts, 2.0 per fact — but 25 facts still carry three or more asserts.The offenders cluster in a few families:
This is a moderate, mechanical job — the fact names already describe single scenarios, so in most cases the asserts within a fact are checking several distinct outcomes of that one scenario (e.g. loop counter, accumulator, and exit condition) and need one fact each.
Target: roughly 150–170 facts.
Script Name
BasicStatementExpressionsTestSuite
Steps To The Task
addFact(), named<original_name> #N