X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/01416e0e4c7e5b6ba8a1a1bf6eb0d8638f32f069..643c6553f171fa5b04a017da16f9283467497355:/test/mhbuild/test-cte diff --git a/test/mhbuild/test-cte b/test/mhbuild/test-cte index acbcde3f..1ccfe199 100755 --- a/test/mhbuild/test-cte +++ b/test/mhbuild/test-cte @@ -275,11 +275,11 @@ rential calculus; I know the scientific names of beings animalculous: In s= hort, in matters vegetable, animal, and mineral, I am the very model of a = modern Major-General. I know our mythic history, King Arthur's and Sir Car= adoc's; I answer hard acrostics, I've a pretty taste for paradox, I quote = -in elegiacs all the crimes of Heliogabalus, In conics I can = -floor peculiarities parabolous; I can tell undoubted Raphaels from Gerard = -Dows and Zoffanies, I know the croaking chorus from The Frogs of Aristopha= -nes! Then I can hum a fugue of which I've heard the music's din afore, An= -d whistle all the airs from that infernal nonsense Pinafore. = +in elegiacs all the crimes of Heliogabalus, In conics I can floor peculiar= +ities parabolous; I can tell undoubted Raphaels from Gerard Dows and Zoffa= +nies, I know the croaking chorus from The Frogs of Aristophanes! Then I c= +an hum a fugue of which I've heard the music's din afore, And whistle all = +the airs from that infernal nonsense Pinafore. = This is a second line. @@ -320,11 +320,11 @@ rential calculus; I know the scientific names of beings animalculous: In s= hort, in matters vegetable, animal, and mineral, I am the very model of a = modern Major-General. I know our mythic history, King Arthur's and Sir Car= adoc's; I answer hard acrostics, I've a pretty taste for paradox, I quote = -in elegiacs all the crimes of Heliogabalus, In conics I can = -floor peculiarities parabolous; I can tell undoubted Raphaels from Gerard = -Dows and Zoffanies, I know the croaking chorus from The Frogs of Aristopha= -nes! Then I can hum a fugue of which I've heard the music's din afore, An= -d whistle all the airs from that infernal nonsense Pinafore. = +in elegiacs all the crimes of Heliogabalus, In conics I can floor peculiar= +ities parabolous; I can tell undoubted Raphaels from Gerard Dows and Zoffa= +nies, I know the croaking chorus from The Frogs of Aristophanes! Then I c= +an hum a fugue of which I've heard the music's din afore, And whistle all = +the airs from that infernal nonsense Pinafore. = This is a sec=C3=B6nd line. @@ -347,4 +347,31 @@ set +e run_test 'eval mhbuild "$draft" 2>&1' 'mhbuild: Line in content exceeds maximum line limit (998)' set -e +# +# Check to make sure -maxunencoded does what we want. +# + +cat > "$draft" < +cc: +Fcc: +outbox +------ +This is the test of a lønger line than the ususal limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? +EOF + +run_prog mhbuild -maxunencoded 200 "$draft" + +cat > "$expected" < +cc: +Fcc: +outbox +MIME-Version: 1.0 +Content-Type: text/plain; charset="UTF-8" +Content-Transfer-Encoding: 8bit + +This is the test of a lønger line than the ususal limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? +EOF + +check "$draft" "$expected" + exit ${failed:-0}