1
Fork 0
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:
Sylvestre Ledru 2024-07-01 17:24:42 +02:00 committed by GitHub
commit 4720f8a076
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 55 additions and 81 deletions

View file

@ -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();