Mercurial > projects > ldc
comparison tests/mini/arrays12.d @ 341:1bb99290e03a trunk
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author | lindquist |
---|---|
date | Sun, 13 Jul 2008 02:51:19 +0200 |
parents | test/arrays12.d@a676a7743642 |
children |
comparison
equal
deleted
inserted
replaced
340:351c0077d0b3 | 341:1bb99290e03a |
---|---|
1 module arrays12; | |
2 | |
3 void ints() | |
4 { | |
5 int[3] a = [1,2,3]; | |
6 int[3] b = [2,3,4]; | |
7 int[3] c = [2,5,0]; | |
8 {assert(a < b);} | |
9 {assert(b > a);} | |
10 {assert(a < c);} | |
11 {assert(c > a);} | |
12 {assert(b < c);} | |
13 {assert(c > b);} | |
14 } | |
15 | |
16 void main() | |
17 { | |
18 ints(); | |
19 } |