Mercurial > projects > dstress
changeset 1520:b5c0842014ef
adapted for DMD-1.013
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:23:42 +0000 |
parents | f71bd33bb278 |
children | 2ab1093d9008 |
files | run/t/typeinfo_03_A.d run/t/typeinfo_03_B.d run/t/typeinfo_03_C.d run/t/typeinfo_03_D.d |
diffstat | 4 files changed, 8 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/run/t/typeinfo_03_A.d Fri Apr 27 17:22:49 2007 +0000 +++ b/run/t/typeinfo_03_A.d Fri Apr 27 17:23:42 2007 +0000 @@ -17,11 +17,10 @@ int* b = new int; *a = -10; *b = 10; - - if(-1 < t.compare(a, b)){ + if(t.compare(a, b) < 0){ assert(0); } - if(t.compare(b, a) < 1){ + if(0 < t.compare(b, a)){ assert(0); }
--- a/run/t/typeinfo_03_B.d Fri Apr 27 17:22:49 2007 +0000 +++ b/run/t/typeinfo_03_B.d Fri Apr 27 17:23:42 2007 +0000 @@ -18,10 +18,10 @@ *a = -10; *b = int.max; - if(-1 < t.compare(a, b)){ + if(t.compare(a, b) < 0){ assert(0); } - if(t.compare(b, a) < 1){ + if(0 < t.compare(b, a)){ assert(0); }