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

Clean up the API to expose Huffman encoding #13

Merged
merged 2 commits into from
Apr 27, 2023
Merged

Clean up the API to expose Huffman encoding #13

merged 2 commits into from
Apr 27, 2023

Conversation

whatyouhide
Copy link
Contributor

No description provided.

@whatyouhide whatyouhide requested a review from ericmj April 26, 2023 17:08
Copy link
Contributor

@mtrudel mtrudel left a comment

Choose a reason for hiding this comment

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

Good changes!

Same as `new/2` with default options.
"""
@spec new(non_neg_integer()) :: Table.t()
def new(max_table_size), do: new(max_table_size, [])
Copy link
Member

Choose a reason for hiding this comment

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

What about adding a default argument to new/2 instead:

def new(max_table_size, options \\ [])

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did this initially, but then we cannot use @doc since. 🙃

@whatyouhide whatyouhide merged commit 7c10b7d into main Apr 27, 2023
@whatyouhide whatyouhide deleted the al/huffman branch April 27, 2023 06:17
@coveralls
Copy link

coveralls commented Jan 14, 2024

Pull Request Test Coverage Report for Build 3d1be8ebe889621e0f70f2daa63654f6ebaf89cf-PR-13

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 14 of 14 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.8%) to 95.333%

Totals Coverage Status
Change from base Build 4699d88686dc81d2c3f2f78a8eaf8b45d839ac72: 0.8%
Covered Lines: 143
Relevant Lines: 150

💛 - Coveralls

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.

4 participants