summaryrefslogtreecommitdiffstats
path: root/headers/src/header_components/unstructured.rs
diff options
context:
space:
mode:
Diffstat (limited to 'headers/src/header_components/unstructured.rs')
-rw-r--r--headers/src/header_components/unstructured.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/headers/src/header_components/unstructured.rs b/headers/src/header_components/unstructured.rs
index 84a4912..76d1da6 100644
--- a/headers/src/header_components/unstructured.rs
+++ b/headers/src/header_components/unstructured.rs
@@ -191,4 +191,16 @@ mod test {
MarkFWS,
Text " \t "
]}
+
+ ec_test!{ long_mixed_input, {
+ Unstructured::try_from("Subject: …. AAAAAAAAAAAAAAAAAAA….. AA…")?
+ } => ascii => [
+ Text "Subject:",
+ MarkFWS,
+ Text " =?utf8?Q?=E2=80=A6=2E?=",
+ MarkFWS,
+ Text " =?utf8?Q?AAAAAAAAAAAAAAAAAAA=E2=80=A6=2E=2E?=",
+ MarkFWS,
+ Text " =?utf8?Q?AA=E2=80=A6?="
+ ]}
} \ No newline at end of file