Skip to content

Commit

Permalink
update non-ascii digit import sorting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicarod7 committed Nov 30, 2024
1 parent 334a917 commit e87447d
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 66 deletions.
17 changes: 17 additions & 0 deletions tests/source/non_ascii_numerics_import_asciibetically.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// rustfmt-style_edition: 2015

// ascii-betically sorted
pub use print๙msg;
pub use print0msg;
pub use printémsg;

fn main() {}

/// '๙' = 0E59;THAI DIGIT NINE;Nd; (Non-ASCII Decimal_Number, sorts third)
mod print๙msg {}

/// '0' = 0030;DIGIT ZERO;Nd; (ASCII Decimal_Number, sorts first)
mod print0msg {}

/// 'é' = 00E9;LATIN SMALL LETTER E WITH ACUTE;Ll; (Lowercase_Letter, sorts second)
mod printémsg {}
23 changes: 23 additions & 0 deletions tests/source/non_ascii_numerics_import_versionsort.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// rustfmt-style_edition: 2024

// versionsorted
pub use print๙msg;
pub use print0msg;
pub use printémsg;

fn main() {}

/// '๙' = 0E59;THAI DIGIT NINE;Nd; (Non-ASCII Decimal_Number, one string chunk)
///
/// U+0E59 > U+00E9, sorts third
mod print๙msg {}

/// '0' = 0030;DIGIT ZERO;Nd; (ASCII Decimal_Number, splits into 3 chunks ("print",0,"msg"))
///
/// shortest chunk "print", sorts first
mod print0msg {}

/// 'é' = 00E9;LATIN SMALL LETTER E WITH ACUTE;Ll; (Lowercase_Letter, one string chunk)
///
/// U+00E9 < U+0E59, sorts second
mod printémsg {}
33 changes: 0 additions & 33 deletions tests/source/versionsort_non_ascii_numerics.rs

This file was deleted.

17 changes: 17 additions & 0 deletions tests/target/non_ascii_numerics_import_asciibetically.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// rustfmt-style_edition: 2015

// ascii-betically sorted
pub use print0msg;
pub use printémsg;
pub use print๙msg;

fn main() {}

/// '๙' = 0E59;THAI DIGIT NINE;Nd; (Non-ASCII Decimal_Number, sorts third)
mod print๙msg {}

/// '0' = 0030;DIGIT ZERO;Nd; (ASCII Decimal_Number, sorts first)
mod print0msg {}

/// 'é' = 00E9;LATIN SMALL LETTER E WITH ACUTE;Ll; (Lowercase_Letter, sorts second)
mod printémsg {}
23 changes: 23 additions & 0 deletions tests/target/non_ascii_numerics_import_versionsort.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// rustfmt-style_edition: 2024

// versionsorted
pub use print0msg;
pub use printémsg;
pub use print๙msg;

fn main() {}

/// '๙' = 0E59;THAI DIGIT NINE;Nd; (Non-ASCII Decimal_Number, one string chunk)
///
/// U+0E59 > U+00E9, sorts third
mod print๙msg {}

/// '0' = 0030;DIGIT ZERO;Nd; (ASCII Decimal_Number, splits into 3 chunks ("print",0,"msg"))
///
/// shortest chunk "print", sorts first
mod print0msg {}

/// 'é' = 00E9;LATIN SMALL LETTER E WITH ACUTE;Ll; (Lowercase_Letter, one string chunk)
///
/// U+00E9 < U+0E59, sorts second
mod printémsg {}
33 changes: 0 additions & 33 deletions tests/target/versionsort_non_ascii_numerics.rs

This file was deleted.

0 comments on commit e87447d

Please sign in to comment.