avoid use of doubles to avoid rounding errors.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Mon, 05 Jul 2010 16:32:29 +0200
changeset 6417 82ca017090e7
parent 6415 44a03205f2d6
child 6418 e27b81575ebe
avoid use of doubles to avoid rounding errors.
src/routing/aodv/aodv-test-suite.cc
--- a/src/routing/aodv/aodv-test-suite.cc	Mon Jul 05 11:11:16 2010 +0200
+++ b/src/routing/aodv/aodv-test-suite.cc	Mon Jul 05 16:32:29 2010 +0200
@@ -450,8 +450,8 @@
     rt.Invalidate (Seconds (13));
     NS_TEST_EXPECT_MSG_EQ (rt.GetFlag (), INVALID, "trivial");
     NS_TEST_EXPECT_MSG_EQ (rt.GetLifeTime (), Seconds (13), "trivial");
-    rt.SetLifeTime (Seconds (0.1));
-    NS_TEST_EXPECT_MSG_EQ (rt.GetLifeTime (), Seconds (0.1), "trivial");
+    rt.SetLifeTime (MilliSeconds (100));
+    NS_TEST_EXPECT_MSG_EQ (rt.GetLifeTime (), MilliSeconds (100), "trivial");
     Ptr<Ipv4Route> route = rt.GetRoute ();
     NS_TEST_EXPECT_MSG_EQ (route->GetDestination (), Ipv4Address ("1.2.3.4"), "trivial");