<commit_before>#define BOOST_TEST_MODULE testComputing

#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>

#include <library/computing/multiplication.hpp>

BOOST_AUTO_TEST_SUITE( test_multiply )

    BOOST_AUTO_TEST_CASE( test_int )
    {
        BOOST_CHECK( multiply(4, 5) == 20);
    }

    BOOST_AUTO_TEST_CASE( test_float )
    {
        BOOST_CHECK( multiply(4.5f, 5.5f) == 24.75);
    }

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE( test_computeInterest )

    BOOST_AUTO_TEST_CASE( test_simple )
    {
        namespace tt = boost::test_tools;
        BOOST_TEST(computeInterest(154.5, 1.15) == 177.675, tt::tolerance(0.01));
    }

BOOST_AUTO_TEST_SUITE_END()<commit_msg>[computing] using BOOST_CHECK_CLOSE_FRACTION for back-compatibility<commit_after>#define BOOST_TEST_MODULE testComputing

#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>

#include <library/computing/multiplication.hpp>

BOOST_AUTO_TEST_SUITE( test_multiply )

    BOOST_AUTO_TEST_CASE( test_int )
    {
        BOOST_CHECK( multiply(4, 5) == 20);
    }

    BOOST_AUTO_TEST_CASE( test_float )
    {
        BOOST_CHECK( multiply(4.5f, 5.5f) == 24.75);
    }

BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE( test_computeInterest )

    BOOST_AUTO_TEST_CASE( test_simple )
    {
        namespace tt = boost::test_tools;
        BOOST_CHECK_CLOSE_FRACTION(computeInterest(154.5, 1.15), 177.675, 0.01);
    }

BOOST_AUTO_TEST_SUITE_END()
{'fraction_non_alphanumeric': 0.10446735395189004, 'fraction_numerical': 0.03848797250859107, 'mean_word_length': 4.108771929824561, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4620452', 'n_tokens_mistral': 608, 'n_tokens_neox': 547, 'n_words': 75}