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

fix decode test after always using DEFLATE canonicalization #115

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

oliverlee
Copy link
Collaborator

Update decode test to construct a table in canonical form and fix the
associated test. This commit also adds additional decode test cases.

Change-Id: Ic46cbcee812f5812ab55f446c7d05c0e9e9d3e8a

Copy link

codecov bot commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (427ca92) 97.79% compared to head (354ef0b) 97.79%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #115   +/-   ##
=======================================
  Coverage   97.79%   97.79%           
=======================================
  Files          15       15           
  Lines         408      408           
=======================================
  Hits          399      399           
  Misses          9        9           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@oliverlee oliverlee force-pushed the I5dca691416482ae27ab31bc176fd5217b8e3fd8f branch from 5f2a504 to 5482af4 Compare November 22, 2023 03:52
@oliverlee oliverlee force-pushed the Ic46cbcee812f5812ab55f446c7d05c0e9e9d3e8a branch 2 times, most recently from 081149b to 53838f7 Compare November 22, 2023 04:17
@oliverlee oliverlee force-pushed the I5dca691416482ae27ab31bc176fd5217b8e3fd8f branch from 5482af4 to b15303a Compare November 22, 2023 04:17
@oliverlee oliverlee force-pushed the Ic46cbcee812f5812ab55f446c7d05c0e9e9d3e8a branch from 53838f7 to 96718f6 Compare November 22, 2023 04:22
static constexpr auto expected = std::array{'e'};

constexpr auto decoded = [] {
constexpr auto encoded = std::array<std::byte, 1>{};
Copy link
Owner

Choose a reason for hiding this comment

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

Zero initialized I assume?
Might be clearer to write the zero explicitly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It default constructs the array with default constructed Ts.

Sure I can do that.

@oliverlee oliverlee force-pushed the I5dca691416482ae27ab31bc176fd5217b8e3fd8f branch from b15303a to 0803a3a Compare November 23, 2023 01:28
Base automatically changed from I5dca691416482ae27ab31bc176fd5217b8e3fd8f to master November 23, 2023 01:32
@garymm garymm force-pushed the Ic46cbcee812f5812ab55f446c7d05c0e9e9d3e8a branch from 96718f6 to 4805678 Compare December 12, 2023 04:15
@garymm garymm enabled auto-merge (squash) December 12, 2023 04:15
@garymm garymm force-pushed the Ic46cbcee812f5812ab55f446c7d05c0e9e9d3e8a branch from 4805678 to 8443d50 Compare December 12, 2023 04:21
Update decode test to construct a table in canonical form and fix the
associated test. This commit also adds additional decode test cases.

Change-Id: Ic46cbcee812f5812ab55f446c7d05c0e9e9d3e8a
@garymm garymm force-pushed the Ic46cbcee812f5812ab55f446c7d05c0e9e9d3e8a branch from 8443d50 to 354ef0b Compare December 12, 2023 04:29
@garymm garymm merged commit 0f44c15 into master Dec 12, 2023
15 checks passed
@garymm garymm deleted the Ic46cbcee812f5812ab55f446c7d05c0e9e9d3e8a branch December 12, 2023 04:37
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.

2 participants