-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generalize a few things that don't need to be restricted to ASCII
- Loading branch information
1 parent
7676a6a
commit 37b9a10
Showing
8 changed files
with
12 additions
and
9 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
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
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
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ let str = UTF8String(b"this is a test\xed\x80") | |
@test_throws BoundsError getindex(str, 2:17) | ||
@test_throws UnicodeError getindex(str, 16:17) | ||
@test string(Char(0x110000)) == "\ufffd" | ||
sa = SubString{ASCIIString}("This is a silly test", 1, 14) | ||
sa = SubString{ASCIIString}(ascii("This is a silly test"), 1, 14) | ||
This comment has been minimized.
Sorry, something went wrong.
ScottPJones
Contributor
|
||
s8 = convert(SubString{UTF8String}, sa) | ||
@test typeof(s8) == SubString{UTF8String} | ||
@test s8 == "This is a sill" | ||
|
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
Isn't this a no-op?