From 8a70b78d71c0d306ec12ad824f0b371824890bdd Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 31 May 2010 16:45:21 -0400 Subject: [PATCH] Unit Tests - cmd.t - Fixed test of whether "export" is a read-only command. There are now two export commands. --- src/tests/cmd.t.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/tests/cmd.t.cpp b/src/tests/cmd.t.cpp index b1bc60e87..61fe4d33c 100644 --- a/src/tests/cmd.t.cpp +++ b/src/tests/cmd.t.cpp @@ -33,7 +33,7 @@ Context context; //////////////////////////////////////////////////////////////////////////////// int main (int argc, char** argv) { - UnitTest t (84); + UnitTest t (86); // Without Context::initialize, there is no set of defaults loaded into // Context::Config. @@ -57,9 +57,13 @@ int main (int argc, char** argv) t.ok (cmd.isReadOnlyCommand (), "isReadOnlyCommand completed"); t.notok (cmd.isWriteCommand (), "not isWriteCommand completed"); - cmd.command = "export"; - t.ok (cmd.isReadOnlyCommand (), "isReadOnlyCommand export"); - t.notok (cmd.isWriteCommand (), "not isWriteCommand export"); + cmd.command = "export.csv"; + t.ok (cmd.isReadOnlyCommand (), "isReadOnlyCommand export.csv"); + t.notok (cmd.isWriteCommand (), "not isWriteCommand export.csv"); + + cmd.command = "export.ical"; + t.ok (cmd.isReadOnlyCommand (), "isReadOnlyCommand export.ical"); + t.notok (cmd.isWriteCommand (), "not isWriteCommand export.ical"); cmd.command = "help"; t.ok (cmd.isReadOnlyCommand (), "isReadOnlyCommand help");