NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4161


Ignore:
Timestamp:
Jul 23, 2009, 4:52:05 PM (8 years ago)
Author:
stud-lenk
Message:

Remove duplicate function test_multicast_hostaddress()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protlib/trunk/test/test_address.cpp

    r4107 r4161  
    256256                CPPUNIT_ASSERT( ta.is_multicast() );
    257257        }
    258         void test_multicast_hostaddress() {
    259                 hostaddress ta; // testaddress
    260 
    261                 // Test IPv4 addresses
    262                 ta.set_ipv4("127.0.0.1");
    263                 CPPUNIT_ASSERT( !ta.is_multicast() );
    264 
    265                 ta.set_ipv4("224.0.0.0");
    266                 CPPUNIT_ASSERT( ta.is_multicast() );
    267 
    268                 // Test IPv6 addresses
    269                 ta.set_ip("2001:638:204:1:230:48ff:fec4:813a");
    270                 CPPUNIT_ASSERT( !ta.is_multicast() );
    271                 ta.set_ip("FF01:0:0:0:0:0:0:1");
    272                 CPPUNIT_ASSERT( ta.is_multicast() );
    273         }
    274258};
    275259
Note: See TracChangeset for help on using the changeset viewer.