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/epdf_harness.h

    r442 r456  
    3636    double integral; 
    3737    mat R; 
     38    double tolerance; 
    3839 
    3940public: 
    40     epdf_harness():nsamples(1000), integral(0) { } 
     41    static void test_config(const char *config_file_name); 
    4142 
    42     virtual void test(); 
     43    epdf_harness():nsamples(1000), integral(0), tolerance(0.1) { } 
     44 
     45    virtual void test(const char *config_name, int idx); 
    4346 
    4447    void from_setting(const Setting &set); 
     
    4649protected: 
    4750    epdf *get_epdf() { return hepdf.get(); } 
     51 
     52    double get_tolerance() const { return tolerance; } 
    4853}; 
    4954