Skip to content

The tests #4

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

Merged
merged 2 commits into from
Dec 11, 2013
Merged

The tests #4

merged 2 commits into from
Dec 11, 2013

Conversation

puzzlet
Copy link
Contributor

@puzzlet puzzlet commented Nov 15, 2012

This is the tests from Mark Pilgrim's original repository at Google Code, plus the tests from modern web browsers and similar chardet projects.

P.S. I've also put a pull req on @dcramer's repository: dcramer/chardet#6

@erikrose
Copy link
Contributor

This is great! I've been sad/afraid/amazed that there were no tests for this big bag of heuristics.

@puzzlet
Copy link
Contributor Author

puzzlet commented Nov 30, 2012

Any news yet? Maybe you want me to rebase this to your repository instead of @dcramer's?

dan-blanchard added a commit that referenced this pull request Dec 11, 2013
Add unit tests from Mark Pilgrim's original repository.
@dan-blanchard dan-blanchard merged commit 44d38b3 into chardet:master Dec 11, 2013
dan-blanchard pushed a commit that referenced this pull request Dec 15, 2013
The BOM detection was comparing str instances with bytes instances.
e.g.  b'\xEF\xBB\xBF' ==  '\xEF\xBB\xBF'

Test status before commit: 377 tests 25 failures
Test status after commit: 382 tests 25 failures
dan-blanchard pushed a commit that referenced this pull request Dec 15, 2013
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