projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
753dc96
)
Created an additional i18n test
author
John Darrington
<john@darrington.wattle.id.au>
Sat, 25 Sep 2010 09:43:23 +0000
(11:43 +0200)
committer
John Darrington
<john@darrington.wattle.id.au>
Sat, 25 Sep 2010 09:43:23 +0000
(11:43 +0200)
tests/libpspp/i18n.at
patch
|
blob
|
history
diff --git
a/tests/libpspp/i18n.at
b/tests/libpspp/i18n.at
index c845519c2372f09d1a9a563a4567811257f07044..ed29a7d69ca65cde5e28c23af21a1d80c3a2f737 100644
(file)
--- a/
tests/libpspp/i18n.at
+++ b/
tests/libpspp/i18n.at
@@
-42,3
+42,9
@@
CHECK_I18N([invalid UTF-8 to ISO-8859-1], [UTF-8], [ISO-8859-1],
# 0xc2 == 0302 is the first byte of a 2-byte UTF-8 sequence
CHECK_I18N([truncated UTF-8 to ISO-8559-1], [UTF-8], [ISO-8859-1],
[xy\302], [xy?])
+
+dnl The input to this test is 7 bytes long and the expected output is 9 bytes.
+dnl So it should exercise the E2BIG case
+CHECK_I18N([from ISO-8859-1 to UTF-8 with overflow], [ISO-8859-1], [UTF-8],
+ [Tsch\374\337!], [Tsch\303\274\303\237!])
+