]> git.stg.codes - stg.git/blobdiff - tests/test_conffiles.cpp
Fix mysql store plugin compilation errors
[stg.git] / tests / test_conffiles.cpp
index 897148f5b9224009e9b96eca423aed305b544306..e48abaf290adc01392682d6089c235b354e7ae85 100644 (file)
@@ -3,7 +3,7 @@
 #include <string>
 #include <fstream>
 
-#include <tut/tut.hpp>
+#include "tut/tut.hpp"
 
 #include "conffiles.h"
 
@@ -28,9 +28,11 @@ namespace tut
 
             ensure_equals("Correct construction", cf.Error(), 0);
 
-            ensure_equals("Correct writing 'a' string", cf.WriteString("a", "a-string"), 0);
-            ensure_equals("Correct writing 'b' integer (0)", cf.WriteInt("b", 0), 0);
-            ensure_equals("Correct writing 'e' double (2.718281828)", cf.WriteDouble("e", 2.718281828), 0);
+            cf.WriteString("a", "a-string");
+            cf.WriteInt("b", 0);
+            cf.WriteDouble("e", 2.718281828);
+
+            ensure_equals("Correct data flushing", cf.Flush(), 0);
         }
 
         {