diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2024-07-01 17:24:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-01 17:24:42 +0200 |
commit | 4720f8a076efec272e5d19c5d2a52e5c57e449da (patch) | |
tree | 6283edf2c1ec0fff94f05331c301b5ec20ca5e4e /tests/by-util | |
parent | e6b6b2761b62bfe282ef1f49da922bbb7086213d (diff) | |
parent | 866366a8748912d76398c083f206ca21c5f0e254 (diff) |
Merge pull request #6513 from cvonelm/main
tr: correctly detected matched [:upper:]
Diffstat (limited to 'tests/by-util')
-rw-r--r-- | tests/by-util/test_tr.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/by-util/test_tr.rs b/tests/by-util/test_tr.rs index 4179e21fb..8fe6aab00 100644 --- a/tests/by-util/test_tr.rs +++ b/tests/by-util/test_tr.rs @@ -1376,6 +1376,13 @@ fn check_class_in_set2_must_be_matched_in_set1() { } #[test] +fn check_class_in_set2_must_be_matched_in_set1_right_length_check() { + new_ucmd!() + .args(&["-t", "a-z[:upper:]", "abcdefghijklmnopqrstuvwxyz[:upper:]"]) + .succeeds(); +} + +#[test] fn check_set1_longer_set2_ends_in_class() { new_ucmd!().args(&["[:lower:]a", "[:upper:]"]).fails(); } |