Unit Tests - t2.t
- Removed two unit tests for data file syntax that is no longer
supported, namely unquoted values.
Supported: status:"pending"
Not supported: status:pending
This commit is contained in:
@@ -35,7 +35,7 @@ Context context;
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
int main (int argc, char** argv)
|
int main (int argc, char** argv)
|
||||||
{
|
{
|
||||||
UnitTest t (20);
|
UnitTest t (18);
|
||||||
|
|
||||||
// (blank)
|
// (blank)
|
||||||
bool good = true;
|
bool good = true;
|
||||||
@@ -51,13 +51,6 @@ int main (int argc, char** argv)
|
|||||||
catch (std::string& e){t.diag (e); good = false;}
|
catch (std::string& e){t.diag (e); good = false;}
|
||||||
t.notok (good, "Task::Task ('[]')");
|
t.notok (good, "Task::Task ('[]')");
|
||||||
|
|
||||||
// [name:value]
|
|
||||||
good = true;
|
|
||||||
try {task = Task ("[name:value]");}
|
|
||||||
catch (std::string& e){t.diag (e); good = false;}
|
|
||||||
t.ok (good, "Task::Task ('[name:value]')");
|
|
||||||
t.is (task.get ("name"), "value", "name=value");
|
|
||||||
|
|
||||||
// [name:"value"]
|
// [name:"value"]
|
||||||
good = true;
|
good = true;
|
||||||
try {task = Task ("[name:\"value\"]");}
|
try {task = Task ("[name:\"value\"]");}
|
||||||
|
|||||||
Reference in New Issue
Block a user