<commit_before>/* 
 * TTUnitTest
 * Copyright © 2011, <NAME> and <NAME>
 * 
 * License: This code is licensed under the terms of the "New BSD License"
 * http://creativecommons.org/licenses/BSD/
 */

#include <limits>
#include "TTUnitTest.h"


static const TTFloat32 kTTTestFloat32Epsilon = 0.00001;
static const TTFloat64 kTTTestFloat64Epsilon = 0.000000001;
static const TTFloat32 kTTTestFloat32Infinity = std::numeric_limits<float>::infinity();
static const TTFloat64 kTTTestFloat64Infinity = std::numeric_limits<double>::infinity();



TTBoolean TTTestFloatEquivalence(TTFloat32 aFloat, TTFloat32 bFloat, TTBoolean expectedResult, TTFloat32 epsilon)<commit_msg>TTUnitTest: silence a compiler warning on windows.<commit_after>/* 
 * TTUnitTest
 * Copyright © 2011, <NAME> and <NAME>
 * 
 * License: This code is licensed under the terms of the "New BSD License"
 * http://creativecommons.org/licenses/BSD/
 */

#include <limits>
#include "TTUnitTest.h"


static const TTFloat32 kTTTestFloat32Epsilon = 0.00001f;
static const TTFloat64 kTTTestFloat64Epsilon = 0.000000001;
static const TTFloat32 kTTTestFloat32Infinity = std::numeric_limits<float>::infinity();
static const TTFloat64 kTTTestFloat64Infinity = std::numeric_limits<double>::infinity();



TTBoolean TTTestFloatEquivalence(TTFloat32 aFloat, TTFloat32 bFloat, TTBoolean expectedResult, TTFloat32 epsilon)
{'fraction_non_alphanumeric': 0.097953216374269, 'fraction_numerical': 0.06140350877192982, 'mean_word_length': 6.360215053763441, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '2336018', 'n_tokens_mistral': 501, 'n_tokens_neox': 421, 'n_words': 115}