Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50404 - trunk/libs/math/test
From: john_at_[hidden]
Date: 2008-12-29 13:12:56


Author: johnmaddock
Date: 2008-12-29 13:12:55 EST (Mon, 29 Dec 2008)
New Revision: 50404
URL: http://svn.boost.org/trac/boost/changeset/50404

Log:
Split test/test_nc_beta.cpp into 2 separate tests for the real_concept case.
Text files modified:
   trunk/libs/math/test/Jamfile.v2 | 10 +++++++++-
   trunk/libs/math/test/test_nc_beta.cpp | 5 ++++-
   2 files changed, 13 insertions(+), 2 deletions(-)

Modified: trunk/libs/math/test/Jamfile.v2
==============================================================================
--- trunk/libs/math/test/Jamfile.v2 (original)
+++ trunk/libs/math/test/Jamfile.v2 2008-12-29 13:12:55 EST (Mon, 29 Dec 2008)
@@ -398,7 +398,15 @@
         : # input files
         : # requirements
               <define>TEST_REAL_CONCEPT
- : test_nc_beta_real_concept ;
+ <define>TEST_DATA=1
+ : test_nc_beta_real_concept1 ;
+run test_nc_beta.cpp
+ : # command line
+ : # input files
+ : # requirements
+ <define>TEST_REAL_CONCEPT
+ <define>TEST_DATA=2
+ : test_nc_beta_real_concept2 ;
 run test_nc_f.cpp ;
 run test_nc_t.cpp
         : # command line

Modified: trunk/libs/math/test/test_nc_beta.cpp
==============================================================================
--- trunk/libs/math/test/test_nc_beta.cpp (original)
+++ trunk/libs/math/test/test_nc_beta.cpp 2008-12-29 13:12:55 EST (Mon, 29 Dec 2008)
@@ -393,14 +393,17 @@
 template <typename T>
 void test_accuracy(T, const char* type_name)
 {
+#if !defined(TEST_DATA) || (TEST_DATA == 1)
 #include "ncbeta.ipp"
     do_test_nc_chi_squared(ncbeta, type_name, "Non Central Beta, medium parameters");
     quantile_sanity_check(ncbeta, type_name, "Non Central Beta, medium parameters");
-
+#endif
+#if !defined(TEST_DATA) || (TEST_DATA == 2)
 #include "ncbeta_big.ipp"
     do_test_nc_chi_squared(ncbeta_big, type_name, "Non Central Beta, large parameters");
     // Takes too long to run:
     // quantile_sanity_check(ncbeta_big, type_name, "Non Central Beta, large parameters");
+#endif
 }
 
 int test_main(int, char* [])


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk