File: TestLib.asy

package info (click to toggle)
asymptote 2.02-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 9,720 kB
  • ctags: 9,807
  • sloc: cpp: 54,858; python: 3,590; ansic: 2,371; perl: 1,555; lisp: 1,363; yacc: 545; sh: 523; makefile: 503; lex: 434
file content (15 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (11)
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.");
}