Newer
Older
#include <iostream>
using namespace std;
/** Infrastructure minimale de test **/
#define CHECK(test) if (!(test)) cerr << "Test failed in file " << __FILE__ << " line " << __LINE__ << ": " #test << endl
#include "max.hpp"
void monMaxTest() {
CHECK( monMax(2, 3) == 3 );
CHECK( monMax(5, 2) == 5 );
CHECK( monMax(1, 1) == 1 );