mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
Merge pull request #6513 from cvonelm/main
tr: correctly detected matched [:upper:]
This commit is contained in:
commit
4720f8a076
2 changed files with 55 additions and 81 deletions
|
@ -1375,6 +1375,13 @@ fn check_class_in_set2_must_be_matched_in_set1() {
|
|||
new_ucmd!().args(&["-t", "1[:upper:]", "[:upper:]"]).fails();
|
||||
}
|
||||
|
||||
#[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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue