mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added test for Msg::all
This commit is contained in:
parent
3a7f970834
commit
3d55b4120c
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,7 @@ Context context;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (12);
|
||||
UnitTest t (13);
|
||||
|
||||
Msg m;
|
||||
t.is (m.serialize (), std::string ("client: ") + PACKAGE_STRING + "\n\n\n", "Msg::serialize '' --> '\\n\\n'");
|
||||
|
@ -60,6 +60,10 @@ int main (int argc, char** argv)
|
|||
t.is (m3.get ("name"), "value", "Msg::get");
|
||||
t.is (m3.getPayload (), "payload\n", "Msg::getPayload");
|
||||
|
||||
std::vector <std::string> vars;
|
||||
m3.all (vars);
|
||||
t.ok (vars.size () == 2, "Msg::all --> 2 vars");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue