Mercurial > projects > ldc
comparison test/arrays12.d @ 99:a676a7743642 trunk
[svn r103] Array comparisons are now fully implemented, that is - to the extent that TypeInfo is.
author | lindquist |
---|---|
date | Thu, 15 Nov 2007 00:24:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
98:6789050b5ad1 | 99:a676a7743642 |
---|---|
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 } |