summaryrefslogtreecommitdiffstats
path: root/headers/src/header_components/unstructured.rs
diff options
context:
space:
mode:
authorPhilipp Korber <philippkorber@gmail.com>2019-02-14 20:13:54 +0100
committerPhilipp Korber <philippkorber@gmail.com>2019-02-14 20:33:09 +0100
commit64433a447edee225e7910320987e73f9aee932af (patch)
tree9b01a03541c5649283409eca2684f70fef4c41e8 /headers/src/header_components/unstructured.rs
parent84122098aad7083caaaffd83ac606c7d5db74491 (diff)
fix(internals): Fixed bug where linebrakig could panic.
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