test/src/scale/scale_compact_test.cpp
TEST_P(CompactTest, EncodeSuccess) {
  const auto &[value, match] = GetParam();
  ASSERT_NO_THROW(s << value);
  ASSERT_EQ(s.data(), match);
}
/**
 * @given a value and corresponding buffer match of its encoding
 * @when value is encoded by means of ScaleEncoderStream
 * @then encoded value matches predefined buffer
 */
@given a value and corresponding buffer match of its encoding
@when value is encoded by means of ScaleEncoderStream
@then encoded value matches predefined buffer
@given a value and corresponding buffer match of its encoding @when value is encoded by means of ScaleEncoderStream @then encoded value matches predefined buffer
TEST_P(CompactTest, EncodeSuccess) {
  const auto &[value, match] = GetParam();
  ASSERT_NO_THROW(s << value);
  ASSERT_EQ(s.data(), match);
}
TEST_P ( CompactTest , EncodeSuccess ) { const auto & [ value , match ] = GetParam ( ) ; ASSERT_NO_THROW ( s << value ) ; ASSERT_EQ ( s . data ( ) , match ) ; }
@given a value and corresponding buffer match of its encoding
 @when value is encoded by means of ScaleEncoderStream
 @then encoded value matches predefined buffer
@given a value and corresponding buffer match of its encoding @when value is encoded by means of ScaleEncoderStream @then encoded value matches predefined buffer