fix unit tests

This commit is contained in:
Craig Dowell
2008-03-24 12:56:39 -07:00
parent 18bfce3a97
commit 341ef1908c
2 changed files with 3 additions and 5 deletions

View File

@@ -197,19 +197,19 @@ AddressHelperTest::RunTests (void)
network = h.NewNetwork();
NS_TEST_ASSERT_EQUAL (network, Ipv4Address ("2.0.0.0"));
address = h.NewAddress();
NS_TEST_ASSERT_EQUAL (address, Ipv4Address ("2.0.0.0"));
NS_TEST_ASSERT_EQUAL (address, Ipv4Address ("2.0.0.1"));
h.SetBase ("0.1.0.0", "255.255.0.0");
network = h.NewNetwork();
NS_TEST_ASSERT_EQUAL (network, Ipv4Address ("0.2.0.0"));
address = h.NewAddress();
NS_TEST_ASSERT_EQUAL (address, Ipv4Address ("0.2.0.0"));
NS_TEST_ASSERT_EQUAL (address, Ipv4Address ("0.2.0.1"));
h.SetBase ("0.0.1.0", "255.255.255.0");
network = h.NewNetwork();
NS_TEST_ASSERT_EQUAL (network, Ipv4Address ("0.0.2.0"));
address = h.NewAddress();
NS_TEST_ASSERT_EQUAL (address, Ipv4Address ("0.0.2.0"));
NS_TEST_ASSERT_EQUAL (address, Ipv4Address ("0.0.2.1"));
//
// Make sure the address allocator part is working.

View File

@@ -10,7 +10,6 @@ def build(bld):
'packet-socket-address.cc',
'node.cc',
'ipv4-address.cc',
'ipv4-address-generator.cc',
'net-device.cc',
'address-utils.cc',
'llc-snap-header.cc',
@@ -43,7 +42,6 @@ def build(bld):
'packet-socket-address.h',
'node.h',
'ipv4-address.h',
'ipv4-address-generator.h',
'net-device.h',
'address-utils.h',
'ipv4-route.h',