diff options
Diffstat (limited to 'gettext-tools/tests/cldr-plurals-1')
-rwxr-xr-x | gettext-tools/tests/cldr-plurals-1 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gettext-tools/tests/cldr-plurals-1 b/gettext-tools/tests/cldr-plurals-1 index e593812..18a8b61 100755 --- a/gettext-tools/tests/cldr-plurals-1 +++ b/gettext-tools/tests/cldr-plurals-1 @@ -8,7 +8,7 @@ LC_ALL=C "$top_builddir/src/cldr-plurals" ru /dev/null 2>&1 | grep 'extraction is not supported' > /dev/null 2>&1 test $? = 0 && { echo "Skipping test: cldr-plurals was built without XML support" - exit 77 + Exit 77 } cat > ar.ok <<\EOF @@ -19,7 +19,7 @@ EOF zero: n = 0 @integer 0 @decimal 0.0, 0.00, 0.000, 0.0000; one: n = 1 @integer 1 @decimal 1.0, 1.00, 1.000, 1.0000; two: n = 2 @integer 2 @decimal 2.0, 2.00, 2.000, 2.0000; few: n % 100 = 3..10 @integer 3~10, 103~110, 1003, … @decimal 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 103.0, 1003.0, …; many: n % 100 = 11..99 @integer 11~26, 111, 1011, … @decimal 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 111.0, 1011.0, …; other: @integer 100~102, 200~202, 300~302, 400~402, 500~502, 600, 1000, 10000, 100000, 1000000, … @decimal 0.1~0.9, 1.1~1.7, 10.1, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, … EOF -${DIFF} ar.ok ar.out || exit 1 +${DIFF} ar.ok ar.out || Exit 1 cat > ru.ok <<\EOF nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2); @@ -29,7 +29,7 @@ EOF one: v = 0 and i % 10 = 1 and i % 100 != 11 @integer 1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, …; few: v = 0 and i % 10 = 2..4 and i % 100 != 12..14 @integer 2~4, 22~24, 32~34, 42~44, 52~54, 62, 102, 1002, …; many: v = 0 and i % 10 = 0 or v = 0 and i % 10 = 5..9 or v = 0 and i % 100 = 11..14 @integer 0, 5~19, 100, 1000, 10000, 100000, 1000000, …; other: @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, … EOF -${DIFF} ru.ok ru.out || exit 1 +${DIFF} ru.ok ru.out || Exit 1 # Test extraction from CLDR @@ -48,12 +48,12 @@ EOF cat > foo.ok <<\EOF nplurals=2; plural=(n != 1); EOF -${DIFF} foo.ok foo.out || exit 1 +${DIFF} foo.ok foo.out || Exit 1 "$top_builddir/src/cldr-plurals" -c foo foo.in > foo.cldr.out cat > foo.cldr.ok <<\EOF one: i = 1 and v = 0 @integer 1; other: @integer 0, 2~16, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, … EOF -${DIFF} foo.cldr.ok foo.cldr.out || exit 1 +${DIFF} foo.cldr.ok foo.cldr.out || Exit 1 -exit 0 +Exit 0 |