Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tokenize: add valid normalizer check
- Loading branch information
Showing
7 changed files
with
46 additions
and
5 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
15 changes: 15 additions & 0 deletions
15
test/command/suite/tokenize/invalid/normalizer/invalid.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,15 @@ | ||
| tokenize TokenBigram "aBcDe 123" TokenDelimit | ||
| [ | ||
| [ | ||
| [ | ||
| -22, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| "[tokenize] not normalizer: #<proc:tokenizer TokenDelimit arguments:[$1, $2, $3]>" | ||
| ], | ||
| [ | ||
|
|
||
| ] | ||
| ] | ||
| #|e| [tokenize] not normalizer: #<proc:tokenizer TokenDelimit arguments:[$1, $2, $3]> |
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 @@ | ||
| tokenize TokenBigram "aBcDe 123" TokenDelimit |
15 changes: 15 additions & 0 deletions
15
test/command/suite/tokenize/invalid/normalizer/nonexistent.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,15 @@ | ||
| tokenize TokenBigram "aBcDe 123" NormalizerNonexistent | ||
| [ | ||
| [ | ||
| [ | ||
| -22, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| "[tokenize] nonexistent normalizer: <NormalizerNonexistent>" | ||
| ], | ||
| [ | ||
|
|
||
| ] | ||
| ] | ||
| #|e| [tokenize] nonexistent normalizer: <NormalizerNonexistent> |
1 change: 1 addition & 0 deletions
1
test/command/suite/tokenize/invalid/normalizer/nonexistent.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 @@ | ||
| tokenize TokenBigram "aBcDe 123" NormalizerNonexistent |
3 changes: 0 additions & 3 deletions
3
test/command/suite/tokenize/invalid/normalizer/unknown.expected
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.