1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

Merge pull request #6445 from cvonelm/6341-tr-unaligned-upper

tr: A [:lower:]/[:upper:] in set2 must be matched in set1
This commit is contained in:
Daniel Hofstetter 2024-06-10 10:52:08 +02:00 committed by GitHub
commit 38344edacf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 141 additions and 97 deletions

View file

@ -1369,3 +1369,8 @@ fn check_ignore_truncate_when_squeezing() {
fn check_disallow_blank_in_set2_when_translating() {
new_ucmd!().args(&["-t", "1234", "[:blank:]"]).fails();
}
#[test]
fn check_class_in_set2_must_be_matched_in_set1() {
new_ucmd!().args(&["-t", "1[:upper:]", "[:upper:]"]).fails();
}