-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't allow empty string in range, test coverage improvements
- Loading branch information
Showing
15 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
File renamed without changes.
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,5 @@ | ||
#! expect=error | ||
U+D801 | ||
----- | ||
ERROR: This code point is outside the allowed range | ||
SPAN: 0..6 |
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,5 @@ | ||
#! expect=error | ||
U+EEEEEE | ||
----- | ||
ERROR: This code point is outside the allowed range | ||
SPAN: 0..8 |
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,5 @@ | ||
#! expect=error | ||
U+12345678 | ||
----- | ||
ERROR: This code point is outside the allowed range | ||
SPAN: 0..10 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
pomsky-lib/tests/testcases/errors/empty_string_in_set_range.txt
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,5 @@ | ||
#! expect=error | ||
[''-'z'] | ||
----- | ||
ERROR: Strings used in ranges can't be empty | ||
SPAN: 1..3 |
6 changes: 6 additions & 0 deletions
6
pomsky-lib/tests/testcases/errors/negated_shorthand_twice.txt
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,6 @@ | ||
#! expect=error | ||
[!!d] | ||
----- | ||
ERROR: A shorthand character class can't be negated more than once | ||
HELP: The number of exclamation marks is even, so you can remove all of them | ||
SPAN: 1..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,6 @@ | ||
#! expect=error | ||
['z'-'g'] | ||
----- | ||
ERROR: Character range must be in increasing order, but it is U+007A - U+0067 | ||
HELP: Switch the characters: 'g'-'z' | ||
SPAN: 1..8 |
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,5 @@ | ||
#! expect=error | ||
range ''-'0' | ||
----- | ||
ERROR: cannot parse integer from empty string | ||
SPAN: 6..8 |
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