fixed testing order

This commit is contained in:
keldu.magnus 2020-10-30 00:42:16 +01:00
parent 2b518bbbc1
commit c7b545e87b
1 changed files with 2 additions and 1 deletions

View File

@ -137,12 +137,13 @@ GIN_TEST("List Decoding"){
auto root = builder.initRoot<TestList>();
Error error = codec.decode<TestList>(root, buffer);
GIN_EXPECT(!error.failed(), std::string{"Error: "} + error.message());
auto reader = root.asReader();
auto first = reader.get<0>();
auto second = reader.get<1>();
GIN_EXPECT(!error.failed(), std::string{"Error: "} + error.message());
GIN_EXPECT(first.get() == 2135231 && second.get() == 43871, "Values not correctly decoded");
}