test/src/scale/scale_compact_test.cpp
TEST_P(CompactTest, DecodeSuccess) {
  const auto &[value_match, bytes] = GetParam();
  ScaleDecoderStream s(gsl::make_span(bytes));
  CompactInteger v{};
  ASSERT_NO_THROW(s >> v);
  ASSERT_EQ(v, value_match);
}
/**
 * @given a value and corresponding bytesof its encoding
 * @when value is decoded by means of ScaleDecoderStream from given bytes
 * @then decoded value matches predefined value
 */
@given a value and corresponding bytesof its encoding
@when value is decoded by means of ScaleDecoderStream from given bytes
@then decoded value matches predefined value
@given a value and corresponding bytesof its encoding @when value is decoded by means of ScaleDecoderStream from given bytes @then decoded value matches predefined value
TEST_P(CompactTest, DecodeSuccess) {
  const auto &[value_match, bytes] = GetParam();
  ScaleDecoderStream s(gsl::make_span(bytes));
  CompactInteger v{};
  ASSERT_NO_THROW(s >> v);
  ASSERT_EQ(v, value_match);
}
TEST_P ( CompactTest , DecodeSuccess ) { const auto & [ value_match , bytes ] = GetParam ( ) ; ScaleDecoderStream s ( gsl :: make_span ( bytes ) ) ; CompactInteger v { } ; ASSERT_NO_THROW ( s >> v ) ; ASSERT_EQ ( v , value_match ) ; }
@given a value and corresponding bytesof its encoding
 @when value is decoded by means of ScaleDecoderStream from given bytes
 @then decoded value matches predefined value
@given a value and corresponding bytesof its encoding @when value is decoded by means of ScaleDecoderStream from given bytes @then decoded value matches predefined value