Skip to content

Fixed missing decompress_map_ and added regression tests#1

Open
11Tanik wants to merge 2 commits intopasta-toolbox:mainfrom
11Tanik:main
Open

Fixed missing decompress_map_ and added regression tests#1
11Tanik wants to merge 2 commits intopasta-toolbox:mainfrom
11Tanik:main

Conversation

@11Tanik
Copy link
Copy Markdown

@11Tanik 11Tanik commented May 25, 2024

The function access() now returns the original symbols of the text.

The function access() did only return the original value of the text, if and only if the alphabet had no gaps. Added the initialization of decompress_map_ to compress_leaves() and its usage to access().

Also added regression tests for gappy alphabets.

Tim Junginger added 2 commits May 25, 2024 10:54
The current implementation pushes all symbols to the lowest numbers available.
The function access was missing a way to return the potentially remapped symbols.
…tion actually returns the original values.
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.

1 participant