summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/tests/arith/triple.asy
blob: 135801b63303e5a1b6aa220ecc4b035e5b88a4c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
import TestLib;
triple t = (1,0,0);
StartTest("polar()");
assert(polar(t) == (pi / 2.0) );
EndTest();
StartTest("azimuth()");
assert(azimuth(t) < realEpsilon);
EndTest();
StartTest("unit()");
assert(length(t-unit(t)) < realEpsilon);
EndTest();