-
Notifications
You must be signed in to change notification settings - Fork 898
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix versionsort chunk split on non-ASCII numerics
- Loading branch information
1 parent
0a32a02
commit 334a917
Showing
3 changed files
with
76 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
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,33 @@ | ||
use std::cmp::Ordering; | ||
use print๙msg::print as first_print; | ||
use print0msg::print as second_print; | ||
use printémsg::print as third_print; | ||
|
||
fn main() { | ||
first_print(); | ||
second_print(); | ||
third_print(); | ||
|
||
assert_eq!("print๙msg".cmp("printémsg"), Ordering::Greater); | ||
} | ||
|
||
/// '๙' = 0E59;THAI DIGIT NINE;Nd; | ||
mod print๙msg { | ||
pub fn print() { | ||
println!("Non-ASCII Decimal_Number") | ||
} | ||
} | ||
|
||
/// '0' = 0030;DIGIT ZERO;Nd; | ||
mod print0msg { | ||
pub fn print() { | ||
println!("ASCII Decimal_Number") | ||
} | ||
} | ||
|
||
/// 'é' = 00E9;LATIN SMALL LETTER E WITH ACUTE;Ll; | ||
mod printémsg { | ||
pub fn print() { | ||
println!("Lowercase_Letter") | ||
} | ||
} |
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,33 @@ | ||
use print0msg::print as second_print; | ||
use printémsg::print as third_print; | ||
use print๙msg::print as first_print; | ||
use std::cmp::Ordering; | ||
|
||
fn main() { | ||
first_print(); | ||
second_print(); | ||
third_print(); | ||
|
||
assert_eq!("print๙msg".cmp("printémsg"), Ordering::Greater); | ||
} | ||
|
||
/// '๙' = 0E59;THAI DIGIT NINE;Nd; | ||
mod print๙msg { | ||
pub fn print() { | ||
println!("Non-ASCII Decimal_Number") | ||
} | ||
} | ||
|
||
/// '0' = 0030;DIGIT ZERO;Nd; | ||
mod print0msg { | ||
pub fn print() { | ||
println!("ASCII Decimal_Number") | ||
} | ||
} | ||
|
||
/// 'é' = 00E9;LATIN SMALL LETTER E WITH ACUTE;Ll; | ||
mod printémsg { | ||
pub fn print() { | ||
println!("Lowercase_Letter") | ||
} | ||
} |