X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/48ca7f876fa5f45a34bfd2d63f1804e5cb5e6a2b..c26f4f6b17d688b3defb790486daf42392068aa3:/tests/test_conffiles.cpp diff --git a/tests/test_conffiles.cpp b/tests/test_conffiles.cpp index 897148f5..e48abaf2 100644 --- a/tests/test_conffiles.cpp +++ b/tests/test_conffiles.cpp @@ -3,7 +3,7 @@ #include #include -#include +#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); } {