<commit_before>//
// Created by <NAME> on 10.02.2016.
//

#include "catch.hpp"

#include "errors/system_error.h"

using namespace CppCommon;

TEST_CASE("System error wrapper", "[CppCommon][Errors]")
{
    REQUIRE(SystemError::GetLast() == 0);

    SystemError::SetLast(123);
    REQUIRE(SystemError::GetLast() == 123);
    SystemError::ClearLast();

    REQUIRE(SystemError::GetLast() == 0);

    REQUIRE(!SystemError::to_string().empty());
    REQUIRE(!SystemError::to_string(SystemError::GetLast()).empty());
}<commit_msg>Bugfix<commit_after>//
// Created by <NAME> on 10.02.2016.
//

#include "catch.hpp"

#include "errors/system_error.h"

using namespace CppCommon;

TEST_CASE("System error wrapper", "[CppCommon][Errors]")
{
    SystemError::SetLast(123);
    REQUIRE(SystemError::GetLast() == 123);
    SystemError::ClearLast();

    REQUIRE(SystemError::GetLast() == 0);

    REQUIRE(!SystemError::to_string().empty());
    REQUIRE(!SystemError::to_string(SystemError::GetLast()).empty());
}
{'fraction_non_alphanumeric': 0.19138276553106212, 'fraction_numerical': 0.031062124248496994, 'mean_word_length': 5.3630573248407645, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7640641', 'n_tokens_mistral': 377, 'n_tokens_neox': 337, 'n_words': 52}