Changeset 183:d4a16a79a6c9 in rrlib_serialization


Ignore:
Timestamp:
18.02.2019 18:48:56 (8 months ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
17.03
Children:
184:0e46327804ed, 185:0f6aa7c893a8
Phase:
public
Message:

Adds unit test for bool vector binary serialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/serialization.cpp

    r182 r183  
    140140  RRLIB_UNIT_TESTS_ADD_TEST(TestEnumsString); 
    141141  RRLIB_UNIT_TESTS_ADD_TEST(TestFloatingPointStrings); 
    142   RRLIB_UNIT_TESTS_ADD_TEST(TestTuplesPairsArrays); 
     142  RRLIB_UNIT_TESTS_ADD_TEST(TestTuplesPairsArraysEtc); 
    143143  RRLIB_UNIT_TESTS_END_SUITE; 
    144144 
     
    435435  } 
    436436 
    437   void TestTuplesPairsArrays() 
     437  void TestTuplesPairsArraysEtc() 
    438438  { 
    439439    std::tuple<std::string, int, std::vector<int>> test_tuple("Test", 4, std::vector<int>(4)); 
     
    455455    std::get<1>(test_tuple3) = "Test"; 
    456456    TestBinarySerialization(test_tuple3); 
     457 
     458    std::vector<bool> test_bool_vector = { true, true, false, true }; 
     459    TestBinarySerialization(test_bool_vector, 5 + 4 * sizeof(bool)); 
    457460  } 
    458461}; 
Note: See TracChangeset for help on using the changeset viewer.