<commit_before>#include <catch_with_main.hpp>
#include <cpplocate/cpplocate.h>
#include <iostream>
#include <fstream>
#include <string>
#include "calculator.hpp"
#include "resources.h"

using namespace std::string_literals;
using namespace hellocmake_tests;

TEST_CASE("calculator.sum()", "calculator") {
	calculator t;

	auto sum = t.sum(1, 2);

	REQUIRE(sum == 3);
}

TEST_CASE("Read file from test resource", "calculator") {
	const auto exePath = cpplocate::getModulePath();
	auto resourcePath = exePath + "/" + resources::RESOURCE1;
	std::ifstream file(resourcePath, std::fstream::in);

	std::cout << "Current Path: " << resourcePath << std::endl;

	auto string = ""s;
	std::getline(file, string);

	REQUIRE(file.is_open() == true);
	REQUIRE(string == "Tezzzt");
}<commit_msg>Removed std::string_literals<commit_after>#include <catch_with_main.hpp>
#include <cpplocate/cpplocate.h>
#include <iostream>
#include <fstream>
#include <string>
#include "calculator.hpp"
#include "resources.h"

using namespace hellocmake_tests;

TEST_CASE("calculator.sum()", "calculator") {
	calculator t;

	auto sum = t.sum(1, 2);

	REQUIRE(sum == 3);
}

TEST_CASE("Read file from test resource", "calculator") {
	const auto exePath = cpplocate::getModulePath();
	auto resourcePath = exePath + "/" + resources::RESOURCE1;
	std::ifstream file(resourcePath, std::fstream::in);

	std::cout << "Current Path: " << resourcePath << std::endl;

	std::string string;
	std::getline(file, string);

	REQUIRE(file.is_open() == true);
	REQUIRE(string == "Tezzzt");
}
{'fraction_non_alphanumeric': 0.16775032509752927, 'fraction_numerical': 0.005201560468140442, 'mean_word_length': 6.363636363636363, 'pattern_counts': {'":': 0, '<': 25, '<?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': '4791820', 'n_tokens_mistral': 569, 'n_tokens_neox': 549, 'n_words': 119}