Unit Tests

- Simplified the msg.t.cpp tests.
This commit is contained in:
Paul Beckingham 2015-03-07 11:35:48 -05:00
parent a2cae67644
commit d390f99fc5

View file

@ -25,8 +25,6 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <iostream>
#include <stdlib.h>
#include <Context.h>
#include <Msg.h>
#include <test.h>
@ -38,10 +36,6 @@ int main (int argc, char** argv)
{
UnitTest t (12);
// Ensure environment has no influence.
unsetenv ("TASKDATA");
unsetenv ("TASKRC");
Msg m;
t.is (m.serialize (), std::string ("client: ") + PACKAGE_STRING + "\n\n\n", "Msg::serialize '' --> '\\n\\n'");
@ -65,6 +59,7 @@ int main (int argc, char** argv)
t.is (m3.get ("foo"), "bar", "Msg::get");
t.is (m3.get ("name"), "value", "Msg::get");
t.is (m3.getPayload (), "payload\n", "Msg::getPayload");
return 0;
}