ICU-3499 os/400 does not handle the dash as expected in sscanf scanset.

Move %[a-f] and similar tests to data driven tests.

X-SVN-Rev: 15562
This commit is contained in:
George Rhoten 2004-05-26 19:22:00 +00:00
parent 335a1b7296
commit 9e94e1ff84
3 changed files with 9 additions and 10 deletions

View File

@ -1094,11 +1094,6 @@ static void TestFScanset(void) {
TestFScanSetFormat("%[abcdefgh]", abcUChars, abcChars, TRUE);
TestFScanSetFormat("%[;hgfedcba]", abcUChars, abcChars, TRUE);
TestFScanSetFormat("%[a-f]", abcUChars, abcChars, TRUE);
TestFScanSetFormat("%[a-c]", abcUChars, abcChars, TRUE);
TestFScanSetFormat("%[^e-f]", abcUChars, abcChars, TRUE);
TestFScanSetFormat("%[^a]", abcUChars, abcChars, TRUE);
TestFScanSetFormat("%[^e]", abcUChars, abcChars, TRUE);
TestFScanSetFormat("%[^ed]", abcUChars, abcChars, TRUE);

View File

@ -620,11 +620,6 @@ static void TestSScanset(void) {
TestSScanSetFormat("%[abcdefgh]", abcUChars, abcChars, TRUE);
TestSScanSetFormat("%[;hgfedcba]", abcUChars, abcChars, TRUE);
TestSScanSetFormat("%[a-f]", abcUChars, abcChars, TRUE);
TestSScanSetFormat("%[a-c]", abcUChars, abcChars, TRUE);
TestSScanSetFormat("%[^e-f]", abcUChars, abcChars, TRUE);
TestSScanSetFormat("%[^a]", abcUChars, abcChars, TRUE);
TestSScanSetFormat("%[^e]", abcUChars, abcChars, TRUE);
TestSScanSetFormat("%[^ed]", abcUChars, abcChars, TRUE);

View File

@ -263,6 +263,15 @@ icuio {
{
"%[a\U00010000]", "a\U00010000\U00010001b", "S", "a\U00010000"
}
{
"%[a-f]", "abccdefg", "S", "abccdef"
}
{
"%[a-c]", "abccdefg", "S", "abcc"
}
{
"%[^e-f]", "abccdefg", "S", "abccd"
}
{
"%S", "a\U00010000b", "S", "a\U00010000b"
}