summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/tests/TestLib.asy
blob: a4a4b239927817cb7678cfd8f580d8d10cf5b597 (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 + "...",flush);
}

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