test/src/scale/scale_collection_test.cpp
TEST(Scale, encodeCollectionOf80) {
  // 80 items of value 1
  ByteArray collection(80, 1);
  auto match = ByteArray{65, 1};  // header
  match.insert(match.end(), collection.begin(), collection.end());
  ScaleEncoderStream s;
  ASSERT_NO_THROW((s << collection));
  auto &&out = s.data();
  ASSERT_EQ(out.size(), 82);
  ASSERT_EQ(out, match);
}
/**
 * @given collection of 80 items of type uint8_t
 * @when encodeCollection is applied
 * @then expected result is obtained: header is 2 byte, items are 1 byte each
 */
@given collection of 80 items of type uint8_t
@when encodeCollection is applied
@then expected result is obtained: header is 2 byte, items are 1 byte each
@given collection of 80 items of type uint8_t @when encodeCollection is applied @then expected result is obtained : header is 2 byte items are 1 byte each
TEST(Scale, encodeCollectionOf80) {
  ByteArray collection(80, 1);
  auto match = ByteArray{65, 1};  
  match.insert(match.end(), collection.begin(), collection.end());
  ScaleEncoderStream s;
  ASSERT_NO_THROW((s << collection));
  auto &&out = s.data();
  ASSERT_EQ(out.size(), 82);
  ASSERT_EQ(out, match);
}
TEST ( Scale , encodeCollectionOf80 ) { ByteArray collection ( 80 , 1 ) ; auto match = ByteArray { 65 , 1 } ; match . insert ( match . end ( ) , collection . begin ( ) , collection . end ( ) ) ; ScaleEncoderStream s ; ASSERT_NO_THROW ( ( s << collection ) ) ; auto && out = s . data ( ) ; ASSERT_EQ ( out . size ( ) , 82 ) ; ASSERT_EQ ( out , match ) ; }
@given collection of 80 items of type uint8_t
 @when encodeCollection is applied
 @then expected result is obtained: header is 2 byte, items are 1 byte each
@given collection of 80 items of type uint8_t @when encodeCollection is applied @then expected result is obtained : header is 2 byte items are 1 byte each
// 80 items of value 1 // header