-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And also mass-reformat. `tables.rs` is ignored for now
- Loading branch information
1 parent
771ddda
commit 0b9b162
Showing
13 changed files
with
62 additions
and
40 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,14 +1,12 @@ | ||
use unicode_normalization::{ | ||
is_nfc, is_nfc_stream_safe, UnicodeNormalization, | ||
}; | ||
|
||
#[test] | ||
fn test_streamsafe_regression(){ | ||
let input = "\u{342}".repeat(55) + &"\u{344}".repeat(3); | ||
let nfc_ss = input.chars().nfc().stream_safe().collect::<String>(); | ||
|
||
// The result should be NFC: | ||
assert!(is_nfc(&nfc_ss)); | ||
// and should be stream-safe: | ||
assert!(is_nfc_stream_safe(&nfc_ss)) | ||
} | ||
use unicode_normalization::{is_nfc, is_nfc_stream_safe, UnicodeNormalization}; | ||
|
||
#[test] | ||
fn test_streamsafe_regression() { | ||
let input = "\u{342}".repeat(55) + &"\u{344}".repeat(3); | ||
let nfc_ss = input.chars().nfc().stream_safe().collect::<String>(); | ||
|
||
// The result should be NFC: | ||
assert!(is_nfc(&nfc_ss)); | ||
// and should be stream-safe: | ||
assert!(is_nfc_stream_safe(&nfc_ss)) | ||
} |