summaryrefslogtreecommitdiff
path: root/graphics/asymptote/tests/TestLib.asy
blob: f735fef09e6c744655418f662fcfb45188ad6725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
bool close(pair a, pair b) 
{
  real norm=(b == 0) ? 1 : max(abs(a),abs(b));
  return abs(a-b) <= 100*realEpsilon*norm;
}

void StartTest(string desc)
{ 
  write("Testing " + desc + "...");
}

void EndTest()
{
  write("PASSED.");
}