Bug 1059 - Unable to load trace files created from SUMO and TraNS Lite: fixed

This commit is contained in:
Kirill Andreev
2011-12-14 18:50:28 +03:00
parent 12eb268bf4
commit f13bf276f3
2 changed files with 11 additions and 0 deletions

View File

@@ -353,6 +353,10 @@ ParseNs2Line (const string& str)
{
string x;
s >> x;
if (x.length () == 0)
{
continue;
}
ret.tokens.push_back (x);
int ii (0);
double d (0);

View File

@@ -432,6 +432,13 @@ public:
t->AddReferencePoint ("0", 6, Vector (0, 5, 0), Vector (0, -1, 0));
t->AddReferencePoint ("0", 16, Vector (0, -10, 0), Vector (0, 0, 0));
AddTestCase (t);
t = new Ns2MobilityHelperTest ("Bug 1059 testcase", Seconds (16));
t->SetTrace ("$node_(0) set X_ 10.0\r\n"
"$node_(0) set Y_ 0.0\r\n"
);
// id t position velocity
t->AddReferencePoint ("0", 0, Vector (10, 0, 0), Vector (0, 0, 0));
AddTestCase (t);
}
} g_ns2TransmobilityHelperTestSuite;