Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APItest/t/utf8.t: Simplify some tests
The complicated nested loops of tests this commit replaces don't need to be such. To test utf8_is_invariant_string, we just need to put a single variant in each position of a string that spans over full word (since we have full-word lookup now) and the partial words on either side. We set those partial words up to be one byte each less than a full word. The code needs to work on strings that don't start on a full word, and don't end on one, and this commit continues to do that. An assert is added to the XS code to verify that we are indeed starting something not on a full-word boundary.
- Loading branch information
1 parent
2f6e257
commit 62e2a96
Showing
2 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters