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

Testing LZ77 string index out of range #1

Open
makavelj opened this issue Dec 29, 2020 · 0 comments
Open

Testing LZ77 string index out of range #1

makavelj opened this issue Dec 29, 2020 · 0 comments

Comments

@makavelj
Copy link
Owner

Sometimes the test for LZ77 fails with the error message:

File "test_lempelziv.py", line 25, in
test_77(string)
File "test_lempelziv.py", line 17, in test_77
enc = lz.lz77_encoding(string)
File "/home/janosch/Compression/compress/lz778.py", line 24, in lz77_encoding
pattern += omega[i]
IndexError: string index out of range

Needs to check for which strings the index goes out of range.

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

No branches or pull requests

1 participant