a method to get the size of the storage with opened transaction, tests for readAll, and some test for transactions

This commit is contained in:
Blue 2023-04-01 17:45:20 +03:00
parent 17fb37075c
commit a4bb7e6269
Signed by: blue
GPG key ID: 9B203B252A63EE38
6 changed files with 168 additions and 22 deletions

View file

@ -19,11 +19,11 @@ TEST(Serialization, Double) {
double destination;
serializer.deserialize(data, destination);
EXPECT_EQ(source, destination);
EXPECT_DOUBLE_EQ(source, destination);
double dest2 = serializer.deserialize(data);
EXPECT_EQ(source, dest2);
EXPECT_DOUBLE_EQ(source, dest2);
}
TEST(Serialization, Float) {
@ -42,11 +42,11 @@ TEST(Serialization, Float) {
float destination;
serializer.deserialize(data, destination);
EXPECT_EQ(source, destination);
EXPECT_FLOAT_EQ(source, destination);
float dest2 = serializer.deserialize(data);
EXPECT_EQ(source, dest2);
EXPECT_FLOAT_EQ(source, dest2);
}
TEST(Serialization, Int8) {