# HG changeset patch # User thomask # Date 1177694622 0 # Node ID b5c0842014ef1587d2913ee749e9f58410344667 # Parent f71bd33bb2783ff606422b19157ab3980ff13125 adapted for DMD-1.013 diff -r f71bd33bb278 -r b5c0842014ef run/t/typeinfo_03_A.d --- 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); } diff -r f71bd33bb278 -r b5c0842014ef run/t/typeinfo_03_B.d --- 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); } diff -r f71bd33bb278 -r b5c0842014ef run/t/typeinfo_03_C.d --- a/run/t/typeinfo_03_C.d Fri Apr 27 17:22:49 2007 +0000 +++ b/run/t/typeinfo_03_C.d Fri Apr 27 17:23:42 2007 +0000 @@ -17,10 +17,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); } diff -r f71bd33bb278 -r b5c0842014ef run/t/typeinfo_03_D.d --- a/run/t/typeinfo_03_D.d Fri Apr 27 17:22:49 2007 +0000 +++ b/run/t/typeinfo_03_D.d Fri Apr 27 17:23:42 2007 +0000 @@ -17,10 +17,10 @@ *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); }