From edcacfe1e4ec9aa8df3a32c41b997b7a05e5a1ef Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Mon, 5 Jul 2010 09:58:00 +0200 Subject: [PATCH] add extra test assert --- src/simulator/high-precision.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/simulator/high-precision.cc b/src/simulator/high-precision.cc index 1658d1bf0..f132b0da7 100644 --- a/src/simulator/high-precision.cc +++ b/src/simulator/high-precision.cc @@ -230,6 +230,7 @@ Hp128Bug863TestCase::DoRun (void) a.Div (HighPrecision (0.5)); NS_TEST_ASSERT_MSG_EQ (a.GetDouble (), 1.0, "Simple test for division"); a = HighPrecision (-0.5); + NS_TEST_ASSERT_MSG_EQ (a.GetDouble (), -0.5, "Check that we actually convert doubles correctly"); a.Div (HighPrecision (0.5)); NS_TEST_ASSERT_MSG_EQ (a.GetDouble (), -1.0, "first argument negative"); a = HighPrecision (0.5);