Mercurial > projects > dstress
comparison run/mini/arrays12.d @ 1628:c6ef09dfba4d
add mini test set from ldc project
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Mon, 10 Jan 2011 19:47:18 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1627:e1b954780837 | 1628:c6ef09dfba4d |
---|---|
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 } |