encodeWithByteRanges tries to additionally provide string_views corresponding
to the sourcetokens where the words came from. To assert this works, the
following method is used:
The alignments provided by encodeWithByteRanges should match the intended
tokens in the input. The expected tokens are provided as .expected while the
output is generated through encodeWithByteRanges's alignments.
encodeWithByteRanges tries to additionally provide string_views corresponding to the sourcetokens where the words came from. To assert this works, the following method is used:
The alignments provided by encodeWithByteRanges should match the intended tokens in the input. The expected tokens are provided as .expected while the output is generated through encodeWithByteRanges's alignments.