From 312a89c4a27f64f379ddf40f50cb3434e6a2b7ab Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Tue, 15 Jan 2019 15:37:09 +0900 Subject: [PATCH] fix Random Test for clang --- libs/random/test/distribution_generic.hpp | 6 ------ libs/random/test/engine_generic.hpp | 7 ------- 2 files changed, 13 deletions(-) diff --git a/libs/random/test/distribution_generic.hpp b/libs/random/test/distribution_generic.hpp index fcac3031..4a53e406 100644 --- a/libs/random/test/distribution_generic.hpp +++ b/libs/random/test/distribution_generic.hpp @@ -41,10 +41,7 @@ namespace testspr { { std::ostringstream os; os << dist1; - // ??? -#if !defined(__clang__) TESTSPR_ASSERT(!!os); -#endif s = os.str(); } @@ -54,10 +51,7 @@ namespace testspr { { std::istringstream is(s); is >> dist_temp; - // ??? -#if !defined(__clang__) TESTSPR_ASSERT(!!is); -#endif } TESTSPR_ASSERT(dist_temp == dist1); diff --git a/libs/random/test/engine_generic.hpp b/libs/random/test/engine_generic.hpp index 05643e56..2e095187 100644 --- a/libs/random/test/engine_generic.hpp +++ b/libs/random/test/engine_generic.hpp @@ -32,11 +32,7 @@ namespace testspr { { std::ostringstream os; os << eng1; - // ??? -#if !defined(__clang__) TESTSPR_ASSERT(!!os); -#endif - s = os.str(); } @@ -46,10 +42,7 @@ namespace testspr { { std::istringstream is(s); is >> eng_temp; - // ??? -#if !defined(__clang__) TESTSPR_ASSERT(!!is); -#endif } //TESTSPR_ASSERT(eng_temp == eng1);