~ubuntu-branches/ubuntu/dapper/boost/dapper

« back to all changes in this revision

Viewing changes to libs/math/octonion/octonion_test.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli, Christophe Prud'homme, Domenico Andreoli
  • Date: 2006-01-11 11:11:42 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060111111142-xy6z1i5himlgu8iw
Tags: 1.33.1-2
[ Christophe Prud'homme ]
* Bug fix: "libboost-wave-dev: Dependency on libboost-filesystem-dev
  missing", thanks to Martin v . Löwis (Closes: #346367).

[ Domenico Andreoli ]
* boost/graph/topological_sort.hpp: removed name of unused parameter
  to prevent long compiler warning.  Closes: #347519.
* Applied patch from upstream CVS to fix parsing of valid options
  with a common root.  Closes: #345714.
* libboost-python-dev now correctly depends on python2.4-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
typedef boost::mpl::list<float,double,long double>  test_types;
40
40
 
 
41
// Apple GCC 4.0 uses the "double double" format for its long double,
 
42
// which means that epsilon is VERY small but useless for
 
43
// comparisons. So, don't do those comparisons.
 
44
#if defined(__APPLE_CC__) && defined(__GNUC__) && __GNUC__ == 4
 
45
typedef boost::mpl::list<float,double>  near_eps_test_types;
 
46
#else
 
47
typedef boost::mpl::list<float,double,long double>  near_eps_test_types;
 
48
#endif
 
49
 
41
50
#if BOOST_WORKAROUND(__GNUC__, < 3)
42
51
    // gcc 2.x ignores function scope using declarations,
43
52
    // put them in the scope of the enclosing namespace instead:
734
743
#define    BOOST_OCTONION_COMMON_GENERATOR(fct) \
735
744
    test->add(BOOST_TEST_CASE_TEMPLATE(fct##_test, test_types));
736
745
    
 
746
#define    BOOST_OCTONION_COMMON_GENERATOR_NEAR_EPS(fct) \
 
747
    test->add(BOOST_TEST_CASE_TEMPLATE(fct##_test, near_eps_test_types));
 
748
    
737
749
    
738
750
#define    BOOST_OCTONION_TEST                      \
739
751
    BOOST_OCTONION_COMMON_GENERATOR(multiplication) \
740
 
    BOOST_OCTONION_COMMON_GENERATOR(exp)
 
752
    BOOST_OCTONION_COMMON_GENERATOR_NEAR_EPS(exp)
741
753
    
742
754
    
743
755
    BOOST_OCTONION_TEST
746
758
#undef    BOOST_OCTONION_TEST
747
759
    
748
760
#undef    BOOST_OCTONION_COMMON_GENERATOR
749
 
    
 
761
#undef BOOST_OCTONION_COMMON_GENERATOR_NEAR_EPS
750
762
    
751
763
#ifdef BOOST_OCTONION_TEST_VERBOSE
752
764