<commit_before>#pragma once

#include <boost/preprocessor/comma.hpp>

#include <limits>

class IntervalTests
    : public ::testing::Test
{
public:
    using types = IntervalTypes <int>;
};

class OverlapTests
    : public ::testing::Test
{
public:
    using types = IntervalTypes <int>;
};

class ContainmentTests
    : public ::testing::Test
{
public:
    using types = IntervalTypes <int>;
};

class DistanceTests
    : public ::testing::Test
{
public:
    using types = IntervalTypes <int>;
};

TEST_F(IntervalTests, FailBadBorders)
{
    auto f = []()
    {
        [[maybe_unused]] auto ival = types::interval_type{1 BOOST_PP_COMMA() 0};
    };

    EXPECT_DEATH(f(), "low <= high");
}

TEST_F(IntervalTests, ShallCreateInterval)
{
    auto ival = types::interval_type{1, 24};
    EXPECT_EQ(ival.low(), 1);
    EXPECT_EQ(ival.high(), 24);
}

TEST_F(IntervalTests, ShallCreateInterval2)
{
    auto ival = types::interval_type{-23, 24};
    EXPECT_EQ(ival.low(), -23);
    EXPECT_EQ(ival.high(), 24);<commit_msg>removed unneeded boost pp comma<commit_after>#pragma once

#include <limits>

class IntervalTests
    : public ::testing::Test
{
public:
    using types = IntervalTypes <int>;
};

class OverlapTests
    : public ::testing::Test
{
public:
    using types = IntervalTypes <int>;
};

class ContainmentTests
    : public ::testing::Test
{
public:
    using types = IntervalTypes <int>;
};

class DistanceTests
    : public ::testing::Test
{
public:
    using types = IntervalTypes <int>;
};

TEST_F(IntervalTests, FailBadBorders)
{
    auto f = []()
    {
        [[maybe_unused]] auto ival = types::interval_type{1, 0};
    };

    EXPECT_DEATH(f(), "low <= high");
}

TEST_F(IntervalTests, ShallCreateInterval)
{
    auto ival = types::interval_type{1, 24};
    EXPECT_EQ(ival.low(), 1);
    EXPECT_EQ(ival.high(), 24);
}

TEST_F(IntervalTests, ShallCreateInterval2)
{
    auto ival = types::interval_type{-23, 24};
    EXPECT_EQ(ival.low(), -23);
    EXPECT_EQ(ival.high(), 24);
{'fraction_non_alphanumeric': 0.15002508780732565, 'fraction_numerical': 0.017059708981435023, 'mean_word_length': 3.9601990049751246, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 14, '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': '3678215', 'n_tokens_mistral': 714, 'n_tokens_neox': 695, 'n_words': 150}