Skip to content

[chip8] Improve readablity of the display in `check_display` panic message

Adds the DISPLAY_ON and DISPLAY_OFF constants to the check_display function. They are used to replace # and . in the expected string that is passed as an argument, as well as to build the actual result.

Using variables here allows to easily change the characters representing ON and OFF in the output, without the need to modify all the call sites in the tests.

Merge request reports