diff options
| author | Yacin Tmimi <yacintmimi@gmail.com> | 2024-08-16 15:27:57 -0400 |
|---|---|---|
| committer | Yacin Tmimi <yacintmimi@gmail.com> | 2024-09-03 15:21:36 -0400 |
| commit | 06e16449d28bf4ff2c56e49b158b4f1cead2b993 (patch) | |
| tree | 18c6938eca103bc8f19ce4f5e6ac03eef270a686 | |
| parent | ae59ee755afdbc086c10ce8d693f363a40e3216e (diff) | |
| download | rust-06e16449d28bf4ff2c56e49b158b4f1cead2b993.tar.gz rust-06e16449d28bf4ff2c56e49b158b4f1cead2b993.zip | |
Add test cases for issue 4381
This was one of the original issues filed against rustfmt that discussed using a natural sort order instead of a lexicographical order. At the time it was closed, but now that we're supporting version-sorting in `style_edition=2024` I thought it would be good to add a test case.
| -rw-r--r-- | tests/source/issue-4381/style_edition_2015.rs | 3 | ||||
| -rw-r--r-- | tests/target/issue-4381/style_edition_2015.rs | 3 | ||||
| -rw-r--r-- | tests/target/issue-4381/style_edition_2024.rs | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/source/issue-4381/style_edition_2015.rs b/tests/source/issue-4381/style_edition_2015.rs new file mode 100644 index 00000000000..bb4c9feae1d --- /dev/null +++ b/tests/source/issue-4381/style_edition_2015.rs @@ -0,0 +1,3 @@ +// rustfmt-style_edition: 2015 + +use std::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64}; diff --git a/tests/target/issue-4381/style_edition_2015.rs b/tests/target/issue-4381/style_edition_2015.rs new file mode 100644 index 00000000000..1fc1613083e --- /dev/null +++ b/tests/target/issue-4381/style_edition_2015.rs @@ -0,0 +1,3 @@ +// rustfmt-style_edition: 2015 + +use std::num::{NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8}; diff --git a/tests/target/issue-4381/style_edition_2024.rs b/tests/target/issue-4381/style_edition_2024.rs new file mode 100644 index 00000000000..df85636ad57 --- /dev/null +++ b/tests/target/issue-4381/style_edition_2024.rs @@ -0,0 +1,3 @@ +// rustfmt-style_edition: 2024 + +use std::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64}; |
