test/src/scale/scale_collection_test.cpp
TEST(Scale, encodeCollectionUint64) {
  std::vector<uint64_t> collection = {506097522914230528ull,
                                      1084818905618843912ull};
  ScaleEncoderStream s;
  ASSERT_NO_THROW((s << collection));
  auto &&out = s.data();
  // clang-format off
  ASSERT_EQ(out,
            (ByteArray{
                    8,                // header
                    0, 1, 2, 3,        // first item
                    4, 5, 6, 7,        // second item
                    8, 9, 0xA, 0xB,    // third item
                    0xC, 0xD, 0xE, 0xF // fourth item
            }));
  // clang-format on
}
/**
 * @given collection of items of type uint64_t
 * @when encodeCollection is applied
 * @then expected result is obtained
 */
@given collection of items of type uint64_t
@when encodeCollection is applied
@then expected result is obtained
@given collection of items of type uint64_t @when encodeCollection is applied @then expected result is obtained
TEST(Scale, encodeCollectionUint64) {
  std::vector<uint64_t> collection = {506097522914230528ull,
                                      1084818905618843912ull};
  ScaleEncoderStream s;
  ASSERT_NO_THROW((s << collection));
  auto &&out = s.data();
  ASSERT_EQ(out,
            (ByteArray{
                    8,                
                    0, 1, 2, 3,        
                    4, 5, 6, 7,        
                    8, 9, 0xA, 0xB,    
                    0xC, 0xD, 0xE, 0xF 
            }));
}
TEST ( Scale , encodeCollectionUint64 ) { std :: vector < uint64_t > collection = { 506097522914230528ull , 1084818905618843912ull } ; ScaleEncoderStream s ; ASSERT_NO_THROW ( ( s << collection ) ) ; auto && out = s . data ( ) ; ASSERT_EQ ( out , ( ByteArray { 8 , 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0xA , 0xB , 0xC , 0xD , 0xE , 0xF } ) ) ; }
@given collection of items of type uint64_t
 @when encodeCollection is applied
 @then expected result is obtained
@given collection of items of type uint64_t @when encodeCollection is applied @then expected result is obtained
// clang-format off // header // first item // second item // third item // fourth item // clang-format on