[pan2: 11/268] fix tests
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2: 11/268] fix tests
- Date: Mon, 2 Jan 2012 15:38:55 +0000 (UTC)
commit bd16b106fe6e3254809fc0e87ae03ece47b8d973
Author: K. Haley <haleykd users sf net>
Date: Sun Jan 30 16:34:15 2011 -0700
fix tests
pan/usenet-utils/text-massager-test.cc | 75 +++++++++++++++++++++++++++++++-
1 files changed, 73 insertions(+), 2 deletions(-)
---
diff --git a/pan/usenet-utils/text-massager-test.cc b/pan/usenet-utils/text-massager-test.cc
index 6043383..4981b2a 100644
--- a/pan/usenet-utils/text-massager-test.cc
+++ b/pan/usenet-utils/text-massager-test.cc
@@ -100,11 +100,10 @@ int main (void)
"\n"
"Jan Eric";
out = tm.fill (in);
- std::cout<<out<<std::endl;
check (out == expected_out);
/* wrap real-world 2 */
- in =
+ in =
"In article <bl0D6 3171$Uo2 75315 zwoll1 home nl>, \"Marcel Pol\"\n"
"<mpol nospam gmx net> wrote:\n"
"\n"
@@ -172,6 +171,78 @@ int main (void)
check (out == expected_out);
+ /* wrap format_flowed */
+ in =
+"In article <bl0D6 3171$Uo2 75315 zwoll1 home nl>, \"Marcel Pol\"\n"
+"<mpol nospam gmx net> wrote:\n"
+"\n"
+"> Recently \"Unknown\" <bill m no spam net> wrote:\n"
+">> Knode is not for me\n"
+">> Question: What are the alternative apps. to Knode - \n"
+">> especially in \n"
+">> off-line readers?\n"
+"> \n"
+"> I dunno any good kde newsreaders. I do like pan a lot. It's a gnome/gtk \n"
+"> thing though. But if you don't care too much about a gtk \n"
+"> thing in qyour \n"
+"> kde-desktop, check out pan.\n"
+"> \n"
+"> Btw, you can let a kde-theme be applied to gtk programs too. My gtk \n"
+"> programs look just like kde, with it's default theme.\n"
+"> \n"
+"> \n"
+"> --\n"
+"> Marcel Pol mpol mpol dhs org\n"
+"> \n"
+"> ...my cow ate the CDs.\n"
+"\n"
+"Pan has been going through a lot of modifications recently so make sure \n"
+"you get the latest version you can run \n"
+"with your distro.\n";
+ expected_out =
+"In article\n"
+"<bl0D6 3171$Uo2 75315 zwoll1 home nl>,\n"
+"\"Marcel Pol\"\n"
+"<mpol nospam gmx net> wrote:\n"
+"\n"
+"> Recently \"Unknown\"\n"
+"> <bill m no spam net> wrote:\n"
+">> Knode is not for me\n"
+">> Question: What are the\n"
+">> alternative apps. to\n"
+">> Knode - especially in\n"
+">> off-line readers?\n"
+"> \n"
+"> I dunno any good kde\n"
+"> newsreaders. I do like pan a\n"
+"> lot. It's a gnome/gtk thing\n"
+"> though. But if you don't\n"
+"> care too much about a gtk\n"
+"> thing in qyour kde-desktop,\n"
+"> check out pan.\n"
+"> \n"
+"> Btw, you can let a kde-theme\n"
+"> be applied to gtk programs\n"
+"> too. My gtk programs look\n"
+"> just like kde, with it's\n"
+"> default theme.\n"
+"> \n"
+"> \n"
+"> --\n"
+"> Marcel Pol mpol mpol dhs org\n"
+"> \n"
+"> ...my cow ate the CDs.\n"
+"\n"
+"Pan has been going through a\n"
+"lot of modifications recently\n"
+"so make sure you get the\n"
+"latest version you can run\n"
+"with your distro.";
+ tm.set_wrap_column (30);
+ out = tm.fill (in, true);
+ check (out == expected_out);
+
+
/* rot13 */
in = "Rot-13 started with rn, trn and similar newsreaders back in the mid-1980's. It was common practice for a while for offending messages, and messages with some hint or disclosure (such as the answer to a question or puzzle posed in the message, or for covering spoilers to TV or movie episodes).";
out = in;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]