<commit_before>#include "../filesystem/filesystem"

#include "cppunit-header.h"

#include <cstdio>
#include <cstring>
#include <iostream>
#include <tuple>

template <typename T>
struct operands_and_result
{
	operands_and_result(const T & _o1, const T & _o2, const T & _result)
	  : operand1(_o1), operand2(_o2), result(_result) { }

	const T operand1;
	const T operand2;
	const T result;
};

class Test_Path : public CppUnit::TestFixture
{
	typedef filesystem::path path;

	CPPUNIT_TEST_SUITE(Test_Path);
	CPPUNIT_TEST(defaultConstructor);
	CPPUNIT_TEST(valueConstructors);
	CPPUNIT_TEST(assignmentOperators);
	CPPUNIT_TEST(slashEqualOperator);
	CPPUNIT_TEST(plusEqualOperators);
	CPPUNIT_TEST(compareFunctions);
	CPPUNIT_TEST_SUITE_END();

 protected:
	void defaultConstructor()
	{
		path p;
		CPPUNIT_ASSERT(p.empty());
		CPPUNIT_ASSERT(p.native() == "");
		CPPUNIT_ASSERT(*p.c_str() == '\0');
		std::string s = p;

		CPPUNIT_ASSERT(s.empty());
		CPPUNIT_ASSERT(s == "");
		CPPUNIT_ASSERT(*s.c_str() == '\0');
	}

	void valueConstructor()<commit_msg>fixed spelling fat-finger<commit_after>#include "../filesystem/filesystem"

#include "cppunit-header.h"

#include <cstdio>
#include <cstring>
#include <iostream>
#include <tuple>

template <typename T>
struct operands_and_result
{
	operands_and_result(const T & _o1, const T & _o2, const T & _result)
	  : operand1(_o1), operand2(_o2), result(_result) { }

	const T operand1;
	const T operand2;
	const T result;
};

class Test_Path : public CppUnit::TestFixture
{
	typedef filesystem::path path;

	CPPUNIT_TEST_SUITE(Test_Path);
	CPPUNIT_TEST(defaultConstructor);
	CPPUNIT_TEST(valueConstructors);
	CPPUNIT_TEST(assignmentOperators);
	CPPUNIT_TEST(slashEqualOperator);
	CPPUNIT_TEST(plusEqualOperators);
	CPPUNIT_TEST(compareFunctions);
	CPPUNIT_TEST_SUITE_END();

 protected:
	void defaultConstructor()
	{
		path p;
		CPPUNIT_ASSERT(p.empty());
		CPPUNIT_ASSERT(p.native() == "");
		CPPUNIT_ASSERT(*p.c_str() == '\0');
		std::string s = p;

		CPPUNIT_ASSERT(s.empty());
		CPPUNIT_ASSERT(s == "");
		CPPUNIT_ASSERT(*s.c_str() == '\0');
	}

	void valueConstructors()
{'fraction_non_alphanumeric': 0.14123760037789324, 'fraction_numerical': 0.00944733112895607, 'mean_word_length': 6.06, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '315959', 'n_tokens_mistral': 798, 'n_tokens_neox': 771, 'n_words': 143}