Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UnicodeCIExceptKanaCIKanaWithVoicedSoundMark: fix a wrong type bug
This bug is caused when a fullwidth character is normalized to a halfwidth character. [groonga-dev,02108] Reported by yoku. Thanks!!! [groonga-dev,02110] Fixed by Naoya Murakami. Thanks!!!
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
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
28 changes: 28 additions & 0 deletions
28
test/suite/unicode_ci_except_kana_ci_kana_with_voiced_sound_mark/with_types.expected
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| register normalizers/mysql | ||
| [[0,0.0,0.0],true] | ||
| normalize NormalizerMySQLUnicodeCIExceptKanaCIKanaWithVoicedSoundMark "a1!!あアア亜💕 " WITH_TYPES | ||
| [ | ||
| [ | ||
| 0, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| { | ||
| "normalized": "A1!!あああ亜💕 ", | ||
| "types": [ | ||
| "alpha", | ||
| "digit", | ||
| "symbol", | ||
| "symbol", | ||
| "hiragana", | ||
| "hiragana", | ||
| "hiragana", | ||
| "kanji", | ||
| "others", | ||
| "others" | ||
| ], | ||
| "checks": [ | ||
|
|
||
| ] | ||
| } | ||
| ] |
4 changes: 4 additions & 0 deletions
4
test/suite/unicode_ci_except_kana_ci_kana_with_voiced_sound_mark/with_types.test
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| register normalizers/mysql | ||
|
|
||
| normalize NormalizerMySQLUnicodeCIExceptKanaCIKanaWithVoicedSoundMark \ | ||
| "a1!!あアア亜💕 " WITH_TYPES |