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:
parent
17fb37075c
commit
a4bb7e6269
6 changed files with 168 additions and 22 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue