[Test] New tests for bcase.pp
Original Reporter info from Mantis: CuriousKit @CuriousKit
-
Reporter name: J. Gareth Moreton
Original Reporter info from Mantis: CuriousKit @CuriousKit
- Reporter name: J. Gareth Moreton
Description:
This file introduces some new tests for bcase.pp to give better coverage of the improvements as made in #34762 (closed).
Steps to reproduce:
Extract bcase.zip under tests/bench, replacing bcase.pp, then run and confirm that all tests pass.
Additional information:
New tests involve more situations where negative numbers are concerned, single branches that consist of a range rather than a single value, and also a rare construct (but which appears at least once in the compiler itself) where the case nodes contain goto statements.
All tests contain time measurements so it is still a good bench test.
Mantis conversion info:
- Mantis ID: 34783
- OS: Microsoft Windows
- OS Build: 10 Professional
- Build: Cross-platform
- Platform: x86_64
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 40710 (#16415856)
- Target version: 3.3.1