<commit_before>/** \file test.cpp
 *
 * \brief Executes tests.
  *
 * \author <NAME>
 * \date 29 Sep 2012.
 *
 * Copyright (c) 2012, <NAME>. All rights reserved.
 */


#include "account.hpp"
#include "entry.hpp"
#include "journal.hpp"
#include "ordinary_journal.hpp"
#include "proto_journal.hpp"
#include "tests/phatbooks_tests_common.hpp"
#include <boost/date_time/gregorian/gregorian.hpp>
#include <jewel/decimal.hpp>
#include <UnitTest++/UnitTest++.h>
#include <stdexcept>
#include <iostream>
#include <vector>

using phatbooks::test::TestFixture;
using std::cout;
using std::endl;
using std::vector;


// TODO The tests don't run on Windows. Fix this.

// TODO The tests produce errors in Valgrind. It is probably because
// of things being destroyed in the incorrect order in the test
// fixture destructors.

int main()
{
	try
	{
		return UnitTest::RunAllTests();
	}
	// This seems pointless but is necessary to guarantee the stack is
	// fully unwound if an exception is thrown.
	catch (...)
	{
		throw;
	}
}<commit_msg>Deleted TODOS in tests/test.cpp, re. Valgrind errors and phatbooks_test not running on Windows - as these issues have not been resolved.<commit_after>/** \file test.cpp
 *
 * \brief Executes tests.
  *
 * \author <NAME>
 * \date 29 Sep 2012.
 *
 * Copyright (c) 2012, <NAME>. All rights reserved.
 */


#include "account.hpp"
#include "entry.hpp"
#include "journal.hpp"
#include "ordinary_journal.hpp"
#include "proto_journal.hpp"
#include "tests/phatbooks_tests_common.hpp"
#include <boost/date_time/gregorian/gregorian.hpp>
#include <jewel/decimal.hpp>
#include <UnitTest++/UnitTest++.h>
#include <stdexcept>
#include <iostream>
#include <vector>

using phatbooks::test::TestFixture;
using std::cout;
using std::endl;
using std::vector;

int main()
{
	try
	{
		return UnitTest::RunAllTests();
	}
	// This seems pointless but is necessary to guarantee the stack is
	// fully unwound if an exception is thrown.
	catch (...)
	{
		throw;
	}
}
{'fraction_non_alphanumeric': 0.13573970513472292, 'fraction_numerical': 0.010167768174885612, 'mean_word_length': 4.178947368421053, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5954318', 'n_tokens_mistral': 698, 'n_tokens_neox': 660, 'n_words': 204}