Symptom
The test "should produce base score of 0 for severity 1" passes -- but it is asserting the WRONG expected value. If you fix the off-by-one from Bug 5, this test breaks.
Context
This test was written when the StandardPolicy.baseScore() formula was (severity - 1) * 10. That formula is buggy (Bug 5), but the test was written to match the buggy behavior. After fixing Bug 5 to use severity * 10, the test must be updated too.
The scoring pipeline: base score -> severity weight -> final rounding.
Hints
TypeScript
TypeScript ready
Test Output
▶
Click "Run Tests" to execute your code