<commit_before>//  (C) Copyright <NAME> 2014.
//  Distributed under the Boost Software License, Version 1.0.
//  (See accompanying file LICENSE_1_0.txt or copy at 
//  http://www.boost.org/LICENSE_1_0.txt)

//  See http://www.boost.org/libs/test for the library home page.
//
//! @file
//! BOOST_TEST_DONT_PRINT_LOG_VALUE unit test
// *****************************************************************************

#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <boost/test/data/monomorphic.hpp>

#include <vector>

struct dummy_class
{
  dummy_class(int i = 0) : i_(i){}

  bool operator==(dummy_class const&) const
  {
    return true;
  }
    
  bool operator!=(dummy_class const&) const
  {
    return false;
  }

  int i_;
};

typedef ::std::vector<dummy_class> vector_dummy_class;

BOOST_TEST_DONT_PRINT_LOG_VALUE(dummy_class)

BOOST_AUTO_TEST_CASE(single_object)
{
  dummy_class actual, expected;
  BOOST_CHECK_EQUAL(actual, expected);
}

BOOST_AUTO_TEST_CASE(collection_of_objects)
{
  vector_dummy_class actual, expected;
  BOOST_CHECK_EQUAL_COLLECTIONS(actual.begin(), actual.end(), expected.begin(), expected.end());
}

// this one tests for contexts
vector_dummy_class generate_vector()
{
  vector_dummy_class out;
  out.push_back(3);
  out.push_back(1);
  out.push_back(7);
  return out;
}

vector_dummy_class v = generate_vector();
BOOST_DATA_TEST_CASE( test_data_case, boost::unit_test::data::make(v), var1)
{
  BOOST_CHECK(true);
}<commit_msg>Fixing test in case variadic macros are not supported<commit_after>//  (C) Copyright <NAME> 2014.
//  Distributed under the Boost Software License, Version 1.0.
//  (See accompanying file LICENSE_1_0.txt or copy at 
//  http://www.boost.org/LICENSE_1_0.txt)

//  See http://www.boost.org/libs/test for the library home page.
//
//! @file
//! BOOST_TEST_DONT_PRINT_LOG_VALUE unit test
// *****************************************************************************

#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <boost/test/data/monomorphic.hpp>

#include <vector>

struct dummy_class
{
  dummy_class(int i = 0) : i_(i){}

  bool operator==(dummy_class const&) const
  {
    return true;
  }
    
  bool operator!=(dummy_class const&) const
  {
    return false;
  }

  int i_;
};

typedef ::std::vector<dummy_class> vector_dummy_class;

BOOST_TEST_DONT_PRINT_LOG_VALUE(dummy_class)

BOOST_AUTO_TEST_CASE(single_object)
{
  dummy_class actual, expected;
  BOOST_CHECK_EQUAL(actual, expected);
}

BOOST_AUTO_TEST_CASE(collection_of_objects)
{
  vector_dummy_class actual, expected;
  BOOST_CHECK_EQUAL_COLLECTIONS(actual.begin(), actual.end(), expected.begin(), expected.end());
}

#if BOOST_PP_VARIADICS
// this one tests for contexts printing in dataset tests
vector_dummy_class generate_vector()
{
  vector_dummy_class out;
  out.push_back(3);
  out.push_back(1);
  out.push_back(7);
  return out;
}

vector_dummy_class v = generate_vector();
BOOST_DATA_TEST_CASE( test_data_case, boost::unit_test::data::make(v))
{
  BOOST_CHECK(true);
}
#endif

{'fraction_non_alphanumeric': 0.16820938397701884, 'fraction_numerical': 0.00925630386211299, 'mean_word_length': 5.073643410852713, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4104543', 'n_tokens_mistral': 1128, 'n_tokens_neox': 1069, 'n_words': 218}