~ubuntu-branches/ubuntu/gutsy/icu/gutsy-updates

« back to all changes in this revision

Viewing changes to source/test/intltest/itconv.cpp

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2005-11-19 11:29:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20051119112931-vcizkrp10tli4enw
Tags: 3.4-3
Explicitly build with g++ 3.4.  The current ICU fails its test suite
with 4.0 but not with 3.4.  Future versions should work properly with
4.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/********************************************************************
2
 
 * COPYRIGHT: 
3
 
 * Copyright (c) 1997-2001, International Business Machines Corporation and
4
 
 * others. All Rights Reserved.
5
 
 ********************************************************************/
6
 
 
7
 
 
8
 
/**
9
 
 * IntlTestConvert is the medium level test class for everything in the directory "utility".
10
 
 */
11
 
 
12
 
#include "unicode/utypes.h"
13
 
#include "itconv.h"
14
 
#include "cppcnvt.h"
15
 
 
16
 
void IntlTestConvert::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
17
 
{
18
 
    if (exec) logln("TestSuite Convert: ");
19
 
    switch (index) {
20
 
        case 0:
21
 
            name = "TestConvert"; 
22
 
            if (exec) {
23
 
                logln("TestConvert---"); logln("");
24
 
                ConvertTest test;
25
 
                callTest( test, par );
26
 
            }
27
 
            break;
28
 
 
29
 
        case 1:
30
 
            name = "TestAmbiguous";
31
 
            if (exec) {
32
 
                logln("TestAmbiguous---"); logln("");
33
 
                ConvertTest test;
34
 
                callTest( test, par );
35
 
            }
36
 
            break;
37
 
 
38
 
        default: name = ""; break; //needed to end loop
39
 
    }
40
 
}
41