<commit_before>/*********************************************************************
 *
 * Copyright (C) 2007,  Blekinge Institute of Technology
 *
 * Filename:      test.h
 * Author:        <NAME> <<EMAIL>>
 * Description:   Test harness stuff
 *
 * $Id: test.h 13576 2007-02-10 15:31:09Z ska $
 *
 ********************************************************************/
#ifndef __TEST_H__
#define __TEST_H__

#include "console.h"

#include <stdio.h>
#define __USE_BSD /* M_PI */
#include <math.h>

#define __binary_arithmetic_test(name, type_a, type_b, type_res, op) \
type_res name(type_a a, type_b b) \
{ \
  return ((a) op (b)); \
}

#define __binary_arithmetic_fn_test(name, type_a, type_b, type_res, fn) \
type_res name(type_a a, type_b b) \<commit_msg>tests: Define VERBOSE if it isn't set<commit_after>/*********************************************************************
 *
 * Copyright (C) 2007,  Blekinge Institute of Technology
 *
 * Filename:      test.h
 * Author:        <NAME> <<EMAIL>>
 * Description:   Test harness stuff
 *
 * $Id: test.h 13576 2007-02-10 15:31:09Z ska $
 *
 ********************************************************************/
#ifndef __TEST_H__
#define __TEST_H__

#include "console.h"

#ifndef VERBOSE
# define VERBOSE 0
#endif

#include <stdio.h>
#define __USE_BSD /* M_PI */
#include <math.h>

#define __binary_arithmetic_test(name, type_a, type_b, type_res, op) \
type_res name(type_a a, type_b b) \
{ \
  return ((a) op (b)); \
}

#define __binary_arithmetic_fn_test(name, type_a, type_b, type_res, fn) \
type_res name(type_a a, type_b b) \
{'fraction_non_alphanumeric': 0.2883280757097792, 'fraction_numerical': 0.02965299684542587, 'mean_word_length': 4.7672727272727276, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1595289', 'n_tokens_mistral': 598, 'n_tokens_neox': 536, 'n_words': 136}