X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Ffile_log_test.cc;h=dca1d43866c83371e14e77b276e80c5abbd46f89;hb=2d4e8c5f69cc694625ad95dcee554499605f823b;hp=e0eeba0101ef074e91e3a242a27f614c5f6d1570;hpb=67a68bd971ebe1b35daa3f75873b4ccb53c00ba0;p=dcpomatic.git diff --git a/test/file_log_test.cc b/test/file_log_test.cc index e0eeba010..dca1d4386 100644 --- a/test/file_log_test.cc +++ b/test/file_log_test.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,20 +18,20 @@ */ + /** @file test/file_log_test.cc * @brief Test FileLog. * @ingroup selfcontained */ + #include "lib/file_log.h" #include -#include -using std::cout; BOOST_AUTO_TEST_CASE (file_log_test) { FileLog log ("test/data/short.log"); - BOOST_CHECK_EQUAL (log.head_and_tail (1024), "This is a short log.\nWith only two lines.\n"); - BOOST_CHECK_EQUAL (log.head_and_tail (8), "This is \n .\n .\n .\no lines.\n"); + BOOST_CHECK_EQUAL (log.head_and_tail(1024), "This is a short log.\nWith only two lines.\n"); + BOOST_CHECK_EQUAL (log.head_and_tail(8), "This is \n .\n .\n .\no lines.\n"); }