Browse Source

[2325] Option7 IA unittest improvement.

Tomek Mrugalski 12 years ago
parent
commit
1f943baf94
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/lib/dhcp/tests/option6_ia_unittest.cc

+ 7 - 1
src/lib/dhcp/tests/option6_ia_unittest.cc

@@ -109,7 +109,13 @@ TEST_F(Option6IATest, basic) {
 }
 
 TEST_F(Option6IATest, simple) {
-    Option6IA * ia = new Option6IA(D6O_IA_NA, 1234);
+    Option6IA* ia = new Option6IA(D6O_IA_NA, 1234);
+
+    // Check that the values are really different than what we are about
+    // to set them to.
+    EXPECT_NE(2345, ia->getT1());
+    EXPECT_NE(3456, ia->getT2());
+
     ia->setT1(2345);
     ia->setT2(3456);