From 838bee8525dbb8bcd37f4de87e2c382f89cf65b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 7 Jan 2019 10:05:33 +0100 Subject: [PATCH] fix test --- .../test/Random_numbers/test_Random-no-CGAL_TEST_SUITE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Random_numbers/test/Random_numbers/test_Random-no-CGAL_TEST_SUITE.cpp b/Random_numbers/test/Random_numbers/test_Random-no-CGAL_TEST_SUITE.cpp index 0ad755b7500..907ccb8e30b 100644 --- a/Random_numbers/test/Random_numbers/test_Random-no-CGAL_TEST_SUITE.cpp +++ b/Random_numbers/test/Random_numbers/test_Random-no-CGAL_TEST_SUITE.cpp @@ -7,7 +7,7 @@ int main() { int u = CGAL::get_default_random().get_int( 0, 1000); - if(u >= 0 || u <= 1000) + if(u >= 0 && u < 1000) return 0; else return 1;