Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 22, 2012, 10:36:09 AM (13 years ago)
Author:
landauf
Message:

added tests for several classes and functions in util

Location:
code/branches/testing/test
Files:
9 added
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/test/CMakeLists.txt

    • Property svn:eol-style set to native
  • code/branches/testing/test/CTestCustom.cmake

    • Property svn:eol-style set to native
  • code/branches/testing/test/util/CMakeLists.txt

    • Property svn:eol-style set to native
    r9025 r9114  
    33    EXCLUDE_FROM_ALL
    44    ${GMOCK_MAIN}
     5    ConvertTest.cc
    56    MathTest.cc
     7    mboolTest.cc
     8    ScopeTest.cc
     9    SharedPtrTest.cc
     10    SingletonTest.cc
     11    SmallObjectAllocatorTest.cc
     12    StringUtilsTest.cc
     13    SubStringTest.cc
     14    VA_NARGSTest.cc
    615)
    716TARGET_LINK_LIBRARIES(util_test util gmock_orxonox)
     
    918
    1019ADD_TEST(util_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/util_test)
     20
     21#-----------------
     22
     23IF(MSVC)
     24  IF(CMAKE_CL_64)
     25    SET(MSVC_PLATFORM "x64")
     26  ELSE()
     27    SET(MSVC_PLATFORM "Win32")
     28  ENDIF()
     29  IF(MSVC10)
     30    CONFIGURE_FILE("../../src/orxonox-main.vcxproj.user.in" "${CMAKE_CURRENT_BINARY_DIR}/util_test.vcxproj.user")
     31  ELSE()
     32    STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?).*$" "\\1"
     33           VISUAL_STUDIO_VERSION_SIMPLE "${CMAKE_GENERATOR}")
     34    CONFIGURE_FILE("../../src/orxonox-main.vcproj.user.in" "${CMAKE_CURRENT_BINARY_DIR}/util_test.vcproj.user")
     35  ENDIF()
     36ENDIF(MSVC)
  • code/branches/testing/test/util/MathTest.cc

    • Property svn:eol-style set to native
    r9026 r9114  
    324324    TEST(getUniqueNumber, Test)
    325325    {
    326         std::set<float> numbers;
     326        std::set<unsigned long> numbers;
    327327
    328328        const size_t iterations = 1000;
Note: See TracChangeset for help on using the changeset viewer.