* rename the --separate option into --terminate (mu view), update test cases

This commit is contained in:
Dirk-Jan C. Binnema 2011-07-10 14:07:35 +03:00
parent de150bd9f7
commit 31d568e076
3 changed files with 22 additions and 5 deletions

View File

@ -245,7 +245,7 @@ config_options_group_view (MuConfig *opts)
GOptionEntry entries[] = {
{"summary", 0, 0, G_OPTION_ARG_NONE, &opts->summary,
"only show a short summary of the message (false)", NULL},
{"terminator", 0, 0, G_OPTION_ARG_NONE, &opts->terminator,
{"terminate", 0, 0, G_OPTION_ARG_NONE, &opts->terminator,
"terminate messages with ascii-0x07 (\\f, form-feed)", NULL},
{NULL, 0, 0, 0, NULL, NULL, NULL}
};

View File

@ -115,7 +115,7 @@ test_mu_index (void)
store = mu_store_new (xpath, NULL, NULL);
g_assert (store);
g_assert_cmpuint (mu_store_count (store), ==, 8);
g_assert_cmpuint (mu_store_count (store), ==, 9);
mu_store_destroy (store);
g_free (muhome);
@ -498,7 +498,7 @@ test_mu_view_multi_separate (void)
tmpdir = test_mu_common_get_random_tmpdir();
g_assert (g_mkdir_with_parents (tmpdir, 0700) == 0);
cmdline = g_strdup_printf ("%s view --separate --muhome=%s "
cmdline = g_strdup_printf ("%s view --terminate --muhome=%s "
"%s%cbar%ccur%cmail5 "
"%s%cbar%ccur%cmail5",
MU_PROGRAM,
@ -517,8 +517,7 @@ test_mu_view_multi_separate (void)
len = strlen(output);
/* g_print ("\n[%s](%u)\n", output, len); */
g_assert_cmpuint (len,==,165);
g_assert_cmpuint (len,==,166);
g_free (output);
g_free (cmdline);

View File

@ -0,0 +1,18 @@
Date: Thu, 31 Jul 2008 14:57:25 -0400
From: "Geoff Tate" <jeff@example.com>
Subject: eyes of a stranger
To: "Enrico Fermi" <enrico@example.com>
Message-id: <3BE9E6535E302944823E7A1A20D852173@msg.id>
MIME-version: 1.0
X-label: @NextActions, operation:mindcrime, Queensrÿche
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Precedence: high
And I raise my head and stare
Into the eyes of a stranger
I've always known that the mirror never lies
People always turn away
From the eyes of a stranger
Afraid to know what
Lies behind the stare