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:
parent
335a1b7296
commit
9e94e1ff84
@ -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);
|
||||
|
@ -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);
|
||||
|
9
icu4c/source/test/testdata/icuio.txt
vendored
9
icu4c/source/test/testdata/icuio.txt
vendored
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user