Skip to content

Unroll test data in specs for crypto/subtle#15702

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:spec/crypto-subtle-refactor
Apr 30, 2025
Merged

Unroll test data in specs for crypto/subtle#15702
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:spec/crypto-subtle-refactor

Conversation

@straight-shoota
Copy link
Member

The test setup for constant_time_byte_eq is broken because types the parameters as Int32 | UInt8, but the method should only accept UInt8 (ref #15694 (comment)).

Removing the data hash makes the test clean and slick. It's easier to understand what's going on.

Did the same for constant_time_compare, even though there's no technical reason there.

@straight-shoota straight-shoota added this to the 1.17.0 milestone Apr 24, 2025
@straight-shoota straight-shoota merged commit f49afae into crystal-lang:master Apr 30, 2025
36 checks passed
@straight-shoota straight-shoota deleted the spec/crypto-subtle-refactor branch April 30, 2025 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants