test/src/scale/scale_variant_test.cpp
TEST_P(VariantFixture, EncodeSuccessTest) {
  const auto &[value, match] = GetParam();
  ASSERT_NO_THROW(s << value);
  ASSERT_EQ(s.data(), match);
}
/**
 * @given variant value and byte array
 * @when value is scale-encoded
 * @then encoded bytes match predefined byte array
 */
@given variant value and byte array
@when value is scale-encoded
@then encoded bytes match predefined byte array
@given variant value and byte array @when value is scale - encoded @then encoded bytes match predefined byte array
TEST_P(VariantFixture, EncodeSuccessTest) {
  const auto &[value, match] = GetParam();
  ASSERT_NO_THROW(s << value);
  ASSERT_EQ(s.data(), match);
}
TEST_P ( VariantFixture , EncodeSuccessTest ) { const auto & [ value , match ] = GetParam ( ) ; ASSERT_NO_THROW ( s << value ) ; ASSERT_EQ ( s . data ( ) , match ) ; }
@given variant value and byte array
 @when value is scale-encoded
 @then encoded bytes match predefined byte array
@given variant value and byte array @when value is scale - encoded @then encoded bytes match predefined byte array