Mercurial > hg > orthanc
comparison Resources/EncodingTests.h @ 1347:60cc0ee61edb
fix issue #32
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 Apr 2015 17:43:05 +0200 |
parents | a66224eec125 |
children | 423d3b692bb9 |
comparison
equal
deleted
inserted
replaced
1346:911a1ad5ebe8 | 1347:60cc0ee61edb |
---|---|
1 static const unsigned int testEncodingsCount = 14; | 1 static const unsigned int testEncodingsCount = 18; |
2 static const ::Orthanc::Encoding testEncodings[] = { | 2 static const ::Orthanc::Encoding testEncodings[] = { |
3 ::Orthanc::Encoding_Latin5, | 3 ::Orthanc::Encoding_Latin5, |
4 ::Orthanc::Encoding_Hebrew, | 4 ::Orthanc::Encoding_Hebrew, |
5 ::Orthanc::Encoding_Greek, | 5 ::Orthanc::Encoding_Greek, |
6 ::Orthanc::Encoding_Arabic, | 6 ::Orthanc::Encoding_Arabic, |
11 ::Orthanc::Encoding_Latin1, | 11 ::Orthanc::Encoding_Latin1, |
12 ::Orthanc::Encoding_Utf8, | 12 ::Orthanc::Encoding_Utf8, |
13 ::Orthanc::Encoding_Thai, | 13 ::Orthanc::Encoding_Thai, |
14 ::Orthanc::Encoding_Japanese, | 14 ::Orthanc::Encoding_Japanese, |
15 ::Orthanc::Encoding_Ascii, | 15 ::Orthanc::Encoding_Ascii, |
16 ::Orthanc::Encoding_Chinese | 16 ::Orthanc::Encoding_Windows1251, |
17 ::Orthanc::Encoding_Chinese, | |
18 ::Orthanc::Encoding_Windows1251, | |
19 ::Orthanc::Encoding_Windows1251, | |
20 ::Orthanc::Encoding_Windows1251 | |
17 }; | 21 }; |
18 static const char *testEncodingsEncoded[14] = { | 22 static const char *testEncodingsEncoded[18] = { |
19 "\x54\x65\x73\x74\xe9\xe4\xf6\xf2\xdd", | 23 "\x54\x65\x73\x74\xe9\xe4\xf6\xf2\xdd", |
20 "\x54\x65\x73\x74\xe3", | 24 "\x54\x65\x73\x74\xe3", |
21 "\x54\x65\x73\x74\xc8", | 25 "\x54\x65\x73\x74\xc8", |
22 "\x54\x65\x73\x74\xd5", | 26 "\x54\x65\x73\x74\xd5", |
23 "\x54\x65\x73\x74\xb4\xfb", | 27 "\x54\x65\x73\x74\xb4\xfb", |
27 "\x54\x65\x73\x74\xe9\xe4\xf6\xf2", | 31 "\x54\x65\x73\x74\xe9\xe4\xf6\xf2", |
28 "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2\xd0\x94\xce\x98\xc4\x9d\xd7\x93\xd8\xb5\xc4\xb7\xd1\x9b\xe0\xb9\x9b\xef\xbe\x88\xc4\xb0", | 32 "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2\xd0\x94\xce\x98\xc4\x9d\xd7\x93\xd8\xb5\xc4\xb7\xd1\x9b\xe0\xb9\x9b\xef\xbe\x88\xc4\xb0", |
29 "\x54\x65\x73\x74\xfb", | 33 "\x54\x65\x73\x74\xfb", |
30 "\x54\x65\x73\x74\x84\x44\x83\xa6\xc8", | 34 "\x54\x65\x73\x74\x84\x44\x83\xa6\xc8", |
31 "\x54\x65\x73\x74", | 35 "\x54\x65\x73\x74", |
32 "\x81\x30\x89\x37\x81\x30\x89\x38\xA8\xA4\xA8\xA2\x81\x30\x89\x39\x81\x30\x8A\x30" | 36 "\x54\x65\x73\x74\xc4\x9e", |
37 "\x81\x30\x89\x37\x81\x30\x89\x38\xA8\xA4\xA8\xA2\x81\x30\x89\x39\x81\x30\x8A\x30", | |
38 "\xd0\xe5\xed\xf2\xe3\xe5\xed\xee\xe3\xf0\xe0\xf4\xe8\xff", | |
39 "\xD2\xE0\xE7", | |
40 "\xcf\xf0\xff\xec\xe0\xff" | |
33 }; | 41 }; |
34 static const char *testEncodingsExpected[14] = { | 42 static const char *testEncodingsExpected[18] = { |
35 "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2\xc4\xb0", | 43 "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2\xc4\xb0", |
36 "\x54\x65\x73\x74\xd7\x93", | 44 "\x54\x65\x73\x74\xd7\x93", |
37 "\x54\x65\x73\x74\xce\x98", | 45 "\x54\x65\x73\x74\xce\x98", |
38 "\x54\x65\x73\x74\xd8\xb5", | 46 "\x54\x65\x73\x74\xd8\xb5", |
39 "\x54\x65\x73\x74\xd0\x94\xd1\x9b", | 47 "\x54\x65\x73\x74\xd0\x94\xd1\x9b", |
43 "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2", | 51 "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2", |
44 "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2\xd0\x94\xce\x98\xc4\x9d\xd7\x93\xd8\xb5\xc4\xb7\xd1\x9b\xe0\xb9\x9b\xef\xbe\x88\xc4\xb0", | 52 "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2\xd0\x94\xce\x98\xc4\x9d\xd7\x93\xd8\xb5\xc4\xb7\xd1\x9b\xe0\xb9\x9b\xef\xbe\x88\xc4\xb0", |
45 "\x54\x65\x73\x74\xe0\xb9\x9b", | 53 "\x54\x65\x73\x74\xe0\xb9\x9b", |
46 "\x54\x65\x73\x74\xd0\x94\xce\x98\xef\xbe\x88", | 54 "\x54\x65\x73\x74\xd0\x94\xce\x98\xef\xbe\x88", |
47 "\x54\x65\x73\x74", | 55 "\x54\x65\x73\x74", |
48 "\xc3\x9e\xc3\x9f\xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3" | 56 "\x54\x65\x73\x74\xd0\x94\xd1\x9b", |
57 "\xc3\x9e\xc3\x9f\xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3", | |
58 "\xd0\xa0\xd0\xb5\xd0\xbd\xd1\x82\xd0\xb3\xd0\xb5\xd0\xbd\xd0\xbe\xd0\xb3\xd1\x80\xd0\xb0\xd1\x84\xd0\xb8\xd1\x8f", | |
59 "\xd0\xa2\xd0\xb0\xd0\xb7", | |
60 "\xd0\x9f\xd1\x80\xd1\x8f\xd0\xbc\xd0\xb0\xd1\x8f" | |
49 }; | 61 }; |