From: Jim Meyering Date: Sun, 26 Oct 1997 15:07:01 +0000 (+0000) Subject: Add A, _, a tests using -f. X-Git-Tag: TEXTUTILS-1_22c~151 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=d9eac1e2c09ecdbea2295a380ac0f36d4ecae73a;p=thirdparty%2Fcoreutils.git Add A, _, a tests using -f. --- diff --git a/tests/sort/Test.pm b/tests/sort/Test.pm index b3ffbaadf2..a467807620 100755 --- a/tests/sort/Test.pm +++ b/tests/sort/Test.pm @@ -183,6 +183,17 @@ my @tv = ( "_________U___iob\n_________U__abort\n_________U__abort\n_________U__fprintf\n_________U__free\n_________U__malloc\n_________U__malloc\n_________U__memcpy\n_________U__memset\n_________U_dyld_stub_binding_helper\n", 0], +# Demonstrate that folding changes the ordering of e.g. A, a, and _ +# because while they normally (in the C locale) collate like A, _, a, +# when using -f, `a' is compared as if it were `A'. +["21a", '', "A\na\n_\n", "A\n_\na\n", 0], +["21b", '-f', "A\na\n_\n", "A\na\n_\n", 0], +["21c", '-f', "a\nA\n_\n", "A\na\n_\n", 0], +["21d", '-f', "_\na\nA\n", "A\na\n_\n", 0], +["21e", '-f', "a\n_\nA\n", "A\na\n_\n", 0], +["21f", '-fs', "A\na\n_\n", "A\na\n_\n", 0], +["21g", '-fu', "a\n_\n", "a\n_\n", 0], + ); sub test_vector