summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/tests/arith/integer.asy
blob: a402ca58955f72b1580566d42858cd5f3b6e964d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Integer arithmetic.
import TestLib;
StartTest("integer addition");
assert(1+1==2);
EndTest();
StartTest("integer subtraction");
assert(2-1==1);
EndTest();
StartTest("integer multiplication");
assert(2*2==4);
EndTest();
StartTest("integer division");
assert(4/2==2);
EndTest();