annotate tests/mini/arrays13.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/arrays13.d@c44e6a711885
children
rev   line source
lindquist@100 1 module arrays13;
lindquist@100 2
lindquist@175 3 extern(C) int printf(char*, ...);
lindquist@175 4
lindquist@100 5 void main()
lindquist@100 6 {
lindquist@175 7 char[] a = "hello";
lindquist@100 8
lindquist@100 9 assert(a > "hel");
lindquist@100 10 assert(a >= "hel");
lindquist@100 11 assert(a < "helloo");
lindquist@100 12 assert(a <= "helloo");
lindquist@100 13 assert(a > "betty");
lindquist@100 14 assert(a >= "betty");
lindquist@100 15 assert(a == "hello");
lindquist@100 16 assert(a <= "hello");
lindquist@100 17 assert(a >= "hello");
lindquist@100 18 }