From 506f5728dda0c3dbe379cb0adcd2af035966c706 Mon Sep 17 00:00:00 2001 From: keldu Date: Fri, 24 Dec 2021 22:53:49 +0100 Subject: [PATCH] fixed primitive test --- test/proto_kel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/proto_kel.cpp b/test/proto_kel.cpp index 059d812..ba9b7f9 100644 --- a/test/proto_kel.cpp +++ b/test/proto_kel.cpp @@ -38,7 +38,7 @@ GIN_TEST("Primitive Encoding"){ Error error = codec.encode(root.read(), temp_buffer); GIN_EXPECT(!error.failed(), error.message()); - GIN_EXPECT(temp_buffer.readCompositeLength() == sizeof(value), "Bad Size: " + std::to_string(temp_buffer.readCompositeLength())); + GIN_EXPECT(temp_buffer.readCompositeLength() == (sizeof(value)+8), "Bad Size: " + std::to_string(temp_buffer.readCompositeLength())); GIN_EXPECT(temp_buffer[0] == 5 && temp_buffer[1] == 0 && temp_buffer[2] == 0 && temp_buffer[3] == 0, "Wrong encoded values"); }