diff mbox series

[v3,5/5,pw,utf,test] Add test case for IMAP-UTF-7

Message ID d9f29784-6cea-6411-3b70-3f53a6c639ac@gotplt.org
State Dropped
Headers show
Series iconv: module for IMAP-UTF-7 | expand

Commit Message

Siddhesh Poyarekar March 16, 2021, 2:39 p.m. UTC
---
  iconvdata/TESTS                     |  1 +
  iconvdata/testdata/IMAP-UTF-7       | 25 +++++++++++++++++++++++++
  iconvdata/testdata/IMAP-UTF-7..UTF8 | 25 +++++++++++++++++++++++++
  3 files changed, 51 insertions(+)
  create mode 100644 iconvdata/testdata/IMAP-UTF-7
  create mode 100644 iconvdata/testdata/IMAP-UTF-7..UTF8
diff mbox series

Patch

diff --git a/iconvdata/TESTS b/iconvdata/TESTS
index 74b82f1409..96d425219f 100644
--- a/iconvdata/TESTS
+++ b/iconvdata/TESTS
@@ -95,6 +95,7 @@  EUC-TW			EUC-TW			Y	UTF8
  GBK			GBK			Y	UTF8
  BIG5HKSCS		BIG5HKSCS		Y	UTF8
  UTF-7			UTF-7			N	UTF8
+IMAP-UTF-7		IMAP-UTF-7		N	UTF8
  IBM856			IBM856			N	UTF8
  IBM922			IBM922			Y	UTF8
  IBM930			IBM930			N	UTF8
diff --git a/iconvdata/testdata/IMAP-UTF-7 b/iconvdata/testdata/IMAP-UTF-7
new file mode 100644
index 0000000000..4b03e4ae57
--- /dev/null
+++ b/iconvdata/testdata/IMAP-UTF-7
@@ -0,0 +1,25 @@ 
+&EqASGxItEps-       Amharic
+&AQ0-esky      Czech
+Dansk      Danish
+English    English
+Suomi      Finnish
+Fran&AOc-ais   French
+Deutsch    German
+&A5UDuwO7A7cDvQO5A7oDrA-   Greek
+&BeIF0QXoBdkF6g-      Hebrew
+Italiano   Italian
+Norsk      Norwegian
+&BCAEQwRBBEEEOgQ4BDk-    Russian
+Espa&APE-ol    Spanish
+Svenska    Swedish
+&DiAOMg4pDjIORA4XDiI-    Thai
+T&APw-rk&AOc-e     Turkish
+Ti&Hr8-ng Vi&Hsc-t Vietnamese
+&ZeVnLIqe-     Japanese
+&Ti1lhw-       Chinese
+&1VyuAA-       Korean
+
+// The last line of this file is missing the end-of-line terminator
+// on purpose, in order to test that the conversion empties the bit buffer
+// and shifts back to the initial state at the end of the conversion.
+A&ImIDkQ-
\ No newline at end of file
diff --git a/iconvdata/testdata/IMAP-UTF-7..UTF8 
b/iconvdata/testdata/IMAP-UTF-7..UTF8
new file mode 100644
index 0000000000..3b362e578c
--- /dev/null
+++ b/iconvdata/testdata/IMAP-UTF-7..UTF8
@@ -0,0 +1,25 @@ 
+አማርኛ       Amharic
+česky      Czech
+Dansk      Danish
+English    English
+Suomi      Finnish
+Français   French
+Deutsch    German
+Ελληνικά   Greek
+עברית      Hebrew
+Italiano   Italian
+Norsk      Norwegian
+Русский    Russian
+Español    Spanish
+Svenska    Swedish
+ภาษาไทย    Thai
+Türkçe     Turkish
+Tiếng Việt Vietnamese
+日本語     Japanese
+中文       Chinese
+한글       Korean
+
+// The last line of this file is missing the end-of-line terminator
+// on purpose, in order to test that the conversion empties the bit buffer
+// and shifts back to the initial state at the end of the conversion.
+A≢Α
\ No newline at end of file