<commit_before>#include "catch.hpp"
#include "Bignum.h"

TEST_CASE("Kivetelkezeles", "[exceptions]") {

    Bignum b;
    std::stringstream ss;

    SECTION("negativ", "NotNaturalNum exceptiont kel dobnia")
    {
        Bignum* b;
        CHECK_THROWS_AS(b = new Bignum(-1235), NotNaturalNum&);
    }

    SECTION("nem szam", "NotNaturalNum exceptiont kel dobnia")
    {
        ss.str("12abe");
        CHECK_THROWS_AS(ss >> b, NotNaturalNum&);
    }

    SECTION("0-val kezd", "StartsWithZero exceptiont kel dobnia")
    {
        ss.str("01234");
        CHECK_THROWS_AS(ss >> b, StartsWithZero&);
    }
}

<commit_msg>Update exceptions.cpp<commit_after>#include "catch.hpp"
#include "Bignum.h"

TEST_CASE("Kivetelkezeles", "[exceptions]") {

    Bignum b;
    std::stringstream ss;

    SECTION("negativ", "NotNaturalNum exceptiont kel dobnia")
    {
        CHECK_THROWS_AS(auto b = new Bignum(-1235), NotNaturalNum&);
    }

    SECTION("nem szam", "NotNaturalNum exceptiont kel dobnia")
    {
        ss.str("12abe");
        CHECK_THROWS_AS(ss >> b, NotNaturalNum&);
    }

    SECTION("0-val kezd", "StartsWithZero exceptiont kel dobnia")
    {
        ss.str("01234");
        CHECK_THROWS_AS(ss >> b, StartsWithZero&);
    }
}


{'fraction_non_alphanumeric': 0.14596774193548387, 'fraction_numerical': 0.01935483870967742, 'mean_word_length': 3.0555555555555554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5598744', 'n_tokens_mistral': 503, 'n_tokens_neox': 469, 'n_words': 82}