|
500 |
NS_TEST_ASSERT (tooBig.IsPositive ()); |
500 |
NS_TEST_ASSERT (tooBig.IsPositive ()); |
501 |
tooBig += TimeStep (1); |
501 |
tooBig += TimeStep (1); |
502 |
NS_TEST_ASSERT (tooBig.IsNegative ()); |
502 |
NS_TEST_ASSERT (tooBig.IsNegative ()); |
|
|
503 |
|
504 |
Scalar v3 = Scalar (0.1) / Scalar (1.25); |
505 |
double targetValue = (0.1 / 1.25); |
506 |
NS_TEST_ASSERT (v3.GetDouble () >= targetValue*.99); |
507 |
NS_TEST_ASSERT (v3.GetDouble () <= targetValue*1.01); |
503 |
|
508 |
|
504 |
return result; |
509 |
return result; |
505 |
} |
510 |
} |