]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2325] Option7 IA unittest improvement.
authorTomek Mrugalski <tomasz@isc.org>
Tue, 11 Dec 2012 14:13:58 +0000 (15:13 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 11 Dec 2012 14:13:58 +0000 (15:13 +0100)
src/lib/dhcp/tests/option6_ia_unittest.cc

index 4e0bda1aabbab3da6f47f8f1a4ec89b0b996edc1..24f101df7cf7cc4566e02883e183c92bfdc2df2a 100644 (file)
@@ -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);