12
12
// /
13
13
// ===------------------------------------------------------------------------------------------===//
14
14
15
- #include " utility/CInterfaceTestBase.h"
16
- #include " utility/Storage.h"
17
15
#include " serialbox-c/FieldMetainfo.h"
18
16
#include " serialbox-c/Metainfo.h"
19
17
#include " serialbox-c/Savepoint.h"
20
18
#include " serialbox-c/Serializer.h"
19
+ #include " utility/CInterfaceTestBase.h"
20
+ #include " utility/Storage.h"
21
+ #include < algorithm>
21
22
#include < gtest/gtest.h>
22
23
23
24
namespace {
@@ -43,14 +44,14 @@ TEST_F(CSerializerUtilityTest, Construction) {
43
44
ASSERT_FALSE (this ->hasErrorAndReset ()) << this ->getLastErrorMsg ();
44
45
45
46
EXPECT_EQ (serialboxSerializerGetMode (ser), Write);
46
-
47
+
47
48
char * dir = serialboxSerializerGetDirectory (ser);
48
49
EXPECT_STREQ (dir, directory->path ().c_str ());
49
50
std::free (dir);
50
51
51
52
char * prefix = serialboxSerializerGetPrefix (ser);
52
53
EXPECT_STREQ (prefix, " Field" );
53
- std::free (prefix);
54
+ std::free (prefix);
54
55
55
56
serialboxSerializerUpdateMetaData (ser);
56
57
ASSERT_FALSE (this ->hasErrorAndReset ()) << this ->getLastErrorMsg ();
@@ -91,8 +92,7 @@ TEST_F(CSerializerUtilityTest, Construction) {
91
92
92
93
{
93
94
// MetaData-prefix.json does not exist -> Exception
94
- filesystem::remove ((directory->path () / " dir-is-created-from-write" ) /
95
- " MetaData-Field.json" );
95
+ filesystem::remove ((directory->path () / " dir-is-created-from-write" ) / " MetaData-Field.json" );
96
96
97
97
serialboxSerializer_t* ser = serialboxSerializerCreate (
98
98
Read, (directory->path () / " dir-is-created-from-write" ).c_str (), " Field" , " Binary" );
0 commit comments