mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 09:03:15 +01:00
[svn r103] Array comparisons are now fully implemented, that is - to the extent that TypeInfo is.
This commit is contained in:
19
test/arrays12.d
Normal file
19
test/arrays12.d
Normal file
@@ -0,0 +1,19 @@
|
||||
module arrays12;
|
||||
|
||||
void ints()
|
||||
{
|
||||
int[3] a = [1,2,3];
|
||||
int[3] b = [2,3,4];
|
||||
int[3] c = [2,5,0];
|
||||
{assert(a < b);}
|
||||
{assert(b > a);}
|
||||
{assert(a < c);}
|
||||
{assert(c > a);}
|
||||
{assert(b < c);}
|
||||
{assert(c > b);}
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
ints();
|
||||
}
|
||||
Reference in New Issue
Block a user