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:
@@ -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 ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user