Skip to content

Encode Standard 2 of 5 digit 8 as its own bars - #214

Open
SashaMIT wants to merge 1 commit into
milon:masterfrom
SashaMIT:codered-s25-digit-eight
Open

SashaMIT wants to merge 1 commit into
milon:masterfrom
SashaMIT:codered-s25-digit-eight

Conversation

@SashaMIT

Copy link
Copy Markdown

Standard 2 of 5 digit 8 used the same bar pattern as digit 0 (10101110111010). A scanner reads 8 as 0. Digit 8 is wide, narrow, narrow, wide, narrow (11101010111010).

80 and 00 produced the same bars. The test failed on master (Failed asserting that two arrays are not identical) and passes with the new pattern. Digit 0 stays narrow, narrow, wide, wide, narrow.

Test plan

  • vendor/bin/phpunit --filter DNS1DTest (7 tests, 22 assertions)

Made with Cursor

The pattern was a copy of digit 0, so 80 and 00 drew the same bars.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant