-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
5f2a504
to
5482af4
Compare
081149b
to
53838f7
Compare
5482af4
to
b15303a
Compare
53838f7
to
96718f6
Compare
huffman/test/decode_test.cpp
Outdated
static constexpr auto expected = std::array{'e'}; | ||
|
||
constexpr auto decoded = [] { | ||
constexpr auto encoded = std::array<std::byte, 1>{}; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 T
s.
Sure I can do that.
b15303a
to
0803a3a
Compare
96718f6
to
4805678
Compare
4805678
to
8443d50
Compare
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
8443d50
to
354ef0b
Compare
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