//----------------------------------------------------------------------------- // t-eofitness.cpp // (c) GeNeura Team 1998 //----------------------------------------------------------------------------- #include // time #include // srand, rand #include // std::cout #include using namespace std; //----------------------------------------------------------------------------- template int test_fitness(Fitness a, Fitness b) { // srand(time(0)); // Fitness a = aval; //static_cast(rand()) / RAND_MAX; // Fitness b = bval; //static_cast(rand()) / RAND_MAX; std::cout.precision(2); unsigned repeat = 2; while (repeat--) { std::cout << "------------------------------------------------------" << std::endl; std::cout << "testing < "; if (a < b) std::cout << a << " < " << b << " is true" << std::endl; else std::cout << a << " < " << b << " is false" < "; if (a > b) std::cout << a << " > " << b << " is true" << std::endl; else std::cout << a << " > " << b << " is false" <