From ff01e36d120e31cc661b5e5fa45c3fefcdb09db5 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 11 Feb 2001 19:53:56 +0000 Subject: [PATCH] Compile with Borland, re-enable failing tests [SVN r9136] --- half_open_range_test.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/half_open_range_test.cpp b/half_open_range_test.cpp index 2d089ee..04c2e97 100644 --- a/half_open_range_test.cpp +++ b/half_open_range_test.cpp @@ -6,6 +6,7 @@ // See http://www.boost.org for most recent version including documentation. // // Revision History +// 11 Feb 2001 Compile with Borland, re-enable failing tests (David Abrahams) // 29 Jan 2001 Initial revision (David Abrahams) #include @@ -140,7 +141,6 @@ void category_test_2( assert(!greater(ri,rj)); assert(!less(ri,rj)); } -#if 0 else if (one_empty) { const range& empty = ri.empty() ? ri : rj; @@ -184,7 +184,6 @@ void category_test_2( assert(greater_equal(ri,rj)); } } -#endif } @@ -305,10 +304,10 @@ void test(T x0, T x1, T x2, T x3) template void test_integer(Integer* = 0) // default arg works around MSVC bug { - const Integer a = 0; - const Integer b = a + unsigned_random(128 - a); - const Integer c = b + unsigned_random(128 - b); - const Integer d = c + unsigned_random(128 - c); + Integer a = 0; + Integer b = a + unsigned_random(128 - a); + Integer c = b + unsigned_random(128 - b); + Integer d = c + unsigned_random(128 - c); test(a, b, c, d); }