Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#14] Update barcode helper #22

Merged
merged 2 commits into from
Oct 7, 2024
Merged

[#14] Update barcode helper #22

merged 2 commits into from
Oct 7, 2024

Conversation

itsmattking
Copy link
Collaborator

@itsmattking itsmattking commented Oct 4, 2024

Breaks out BarCode into interface and creates BarCode39 and BarCode128. Further bar code definitions should use BarCode interface.

Breaks out `BarCode` into abstract class and creates `BarCode39` and `BarCode128`.

Further bar code definitions should use `BarCode` as the base class.
Copy link

@jbduncan jbduncan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a few stylistic suggestions, but otherwise, API-wise this looks good to me! 👍

Comment on lines +63 to +73
table(
headers("height"),
row(32001),
row(0),
).forAll { height ->
shouldThrow<IllegalArgumentException> {
subject.copy(
height = height
)
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of tables, well done! 👍

PR feedback:

- Make `BarCode` an `interface`
- Use `table` entries for tests
- Doc consistency fixes
@itsmattking itsmattking merged commit 686f45a into main Oct 7, 2024
2 checks passed
@itsmattking itsmattking deleted the issue/14 branch October 7, 2024 11:09
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.

3 participants