Mercurial > hg > orthanc
comparison Resources/EncodingTests.py @ 2884:497a637366b4 db-changes
integration mainline->db-changes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 12 Oct 2018 15:18:10 +0200 |
parents | 55c900a5b0e4 |
children |
comparison
equal
deleted
inserted
replaced
1762:2b91363cc1d1 | 2884:497a637366b4 |
---|---|
70 print 'static const char *testEncodingsExpected[%d] = {\n %s\n};' % (len(l), ',\n '.join(expected)) | 70 print 'static const char *testEncodingsExpected[%d] = {\n %s\n};' % (len(l), ',\n '.join(expected)) |
71 else: | 71 else: |
72 for i in range(len(expected)): | 72 for i in range(len(expected)): |
73 print expected[i] | 73 print expected[i] |
74 #print '%s: %s' % (expected[i], l[i]) | 74 #print '%s: %s' % (expected[i], l[i]) |
75 | |
76 | |
77 | |
78 u = (u'grüßEN SébasTIen %s' % source) | |
79 print 'static const char *toUpperSource = %s;' % ToArray(u.encode('utf-8')) | |
80 print 'static const char *toUpperResult = %s;' % ToArray(u.upper().encode('utf-8')) |