test/src/scale/scale_pair_test.cpp
TEST(Scale, decodePair) {
  ByteArray bytes = {1, 2, 0, 0, 0};
  ScaleDecoderStream s(bytes);
  using pair_type = std::pair<uint8_t, uint32_t>;
  pair_type pair{};
  ASSERT_NO_THROW((s >> pair));
  ASSERT_EQ(pair.first, 1);
  ASSERT_EQ(pair.second, 2);
}
/**
 * @given byte sequence containign 2 encoded values of
 * different types: uint8_t and uint32_t
 * @when decode is applied
 * @then obtained pair mathces predefined one
 */
@given byte sequence containign 2 encoded values of
different types: uint8_t and uint32_t
@when decode is applied
@then obtained pair mathces predefined one
@given byte sequence containign 2 encoded values of different types : uint8_t and uint32_t @when decode is applied @then obtained pair mathces predefined one
TEST(Scale, decodePair) {
  ByteArray bytes = {1, 2, 0, 0, 0};
  ScaleDecoderStream s(bytes);
  using pair_type = std::pair<uint8_t, uint32_t>;
  pair_type pair{};
  ASSERT_NO_THROW((s >> pair));
  ASSERT_EQ(pair.first, 1);
  ASSERT_EQ(pair.second, 2);
}
TEST ( Scale , decodePair ) { ByteArray bytes = { 1 , 2 , 0 , 0 , 0 } ; ScaleDecoderStream s ( bytes ) ; using pair_type = std :: pair < uint8_t , uint32_t > ; pair_type pair { } ; ASSERT_NO_THROW ( ( s >> pair ) ) ; ASSERT_EQ ( pair . first , 1 ) ; ASSERT_EQ ( pair . second , 2 ) ; }
@given byte sequence containign 2 encoded values of
 different types: uint8_t and uint32_t
 @when decode is applied
 @then obtained pair mathces predefined one
@given byte sequence containign 2 encoded values of different types : uint8_t and uint32_t @when decode is applied @then obtained pair mathces predefined one