Show
Ignore:
Timestamp:
07/31/09 08:38:18 (15 years ago)
Author:
vbarta
Message:

custom test location for harness tests (extended UnitTest?++), configurable tolerance - all tests pass (most of the time)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/square_mat_test.cpp

    r455 r456  
    66 
    77const double epsilon = 0.00001; 
    8  
    9 bool fast = false; 
    10  
    11 namespace UnitTest 
    12 { 
    13  
    14 inline void CheckClose(TestResults &results, const itpp::mat &expected, 
    15                        const itpp::mat &actual, double tolerance, 
    16                        TestDetails const& details) { 
    17     if (!AreClose(expected, actual, tolerance)) {  
    18         MemoryOutStream stream; 
    19         stream << "Expected " << expected << " +/- " << tolerance << " but was " << actual; 
    20  
    21         results.OnTestFailure(details, stream.GetText()); 
    22     } 
    23 } 
    24  
    25 } 
    268 
    279template<typename TMatrix>