Changeset 531:9b7777379085


Ignore:
Timestamp:
04/23/08 16:17:56 (2 years ago)
Author:
Mateusz Loskot <mateusz@…>
Branch:
default
Convert:
svn:1766ff46-f334-0410-ab20-d63176f87757/trunk@596
Message:

Use streams equal-to operator instead of raw pointers comparison. Updated CMakeLists.txt with new tests.

Location:
test/unit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • test/unit/CMakeLists.txt

    r460 r531  
    66 
    77SET( LIBLAS_TEST_SRC 
     8    common.cpp 
    89    guid_test.cpp 
    910    laspoint_test.cpp 
    1011    lasheader_test.cpp 
    1112    lasrecordheader_test.cpp 
     13    lasreader_test.cpp 
     14    laswriter_test.cpp 
    1215    liblas_test_suite.cpp 
    1316) 
  • test/unit/lasreader_test.cpp

    r525 r531  
    226226        std::istream& is = reader.GetStream(); 
    227227 
    228         std::istream const* const p1 = &ifs; 
    229         std::istream const* const p2 = &is; 
    230         ensure_equals(ifs, is); // same streams 
     228        ensure_equals(ifs, is); 
    231229    } 
    232230} 
  • test/unit/laswriter_test.cpp

    r529 r531  
    271271        std::ostream& os = writer.GetStream(); 
    272272 
    273         std::ostream const* const p1 = &ofs; 
    274         std::ostream const* const p2 = &os; 
    275273        ensure_equals(ofs, os); // same streams 
    276274    } 
Note: See TracChangeset for help on using the changeset viewer.