//----------------------------------------------------------------------------- // t-eofitness.cpp // (c) GeNeura Team 1998 //----------------------------------------------------------------------------- #include // time #include // srand, rand #include // 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; cout.precision(2); unsigned repeat = 2; while (repeat--) { cout << "------------------------------------------------------" << endl; cout << "testing < "; if (a < b) cout << a << " < " << b << " is true" << endl; else cout << a << " < " << b << " is false" < "; if (a > b) cout << a << " > " << b << " is true" << endl; else cout << a << " > " << b << " is false" <