Unit Tests - Config

- Added unit tests for Config.  Why didn't I do this a year ago?
- Shut off old 1.7.0 code (gulp).
- Task now thoroughly broken, and only 1.8.0 can help.
This commit is contained in:
Paul Beckingham 2009-06-07 16:31:10 -04:00
parent d702ba8f24
commit 7a219c999e
8 changed files with 121 additions and 49 deletions

View file

@ -57,49 +57,6 @@ Context::Context ()
#endif
}
////////////////////////////////////////////////////////////////////////////////
Context::Context (const Context& other)
{
throw std::string ("unimplemented Context::Context");
config = other.config;
filter = other.filter;
keymap = other.keymap;
sequence = other.sequence;
subst = other.subst;
task = other.task;
tdb = other.tdb;
stringtable = other.stringtable;
program = other.program;
args = other.args;
cmd = other.cmd;
messages = other.messages;
footnotes = other.footnotes;
}
////////////////////////////////////////////////////////////////////////////////
Context& Context::operator= (const Context& other)
{
throw std::string ("unimplemented Context::operator=");
if (this != &other)
{
config = other.config;
filter = other.filter;
keymap = other.keymap;
sequence = other.sequence;
subst = other.subst;
task = other.task;
tdb = other.tdb;
stringtable = other.stringtable;
program = other.program;
args = other.args;
cmd = other.cmd;
messages = other.messages;
footnotes = other.footnotes;
}
return *this;
}
////////////////////////////////////////////////////////////////////////////////
Context::~Context ()
{