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

fixed tests for new UI::get & UI::build

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/epdf_harness.cpp

    r477 r480  
    2020        UIFile in ( config_file_name ); 
    2121        Array<epdf_harness *> input; 
    22         UI::get ( input, in, "data" ); 
     22        UI::get ( input, in, "data", UI::compulsory ); 
    2323        int sz = input.size(); 
    2424        CHECK ( sz > 0 ); 
     
    3333        UI::get ( variance, set, "variance", UI::compulsory ); 
    3434 
     35        UI::get (support, set, "support", UI::optional ); 
     36        UI::get (nbins, set, "nbins", UI::optional ); 
     37        UI::get (nsamples, set, "nsamples", UI::optional ); 
     38        UI::get (R, set, "R", UI::optional ); 
    3539 
    36         UI::get ( support, set, "support" ); 
    37         UI::get ( nbins, set, "nbins" ); 
    38         UI::get ( nsamples, set, "nsamples" ); 
    39         UI::get ( R, set, "R" ); 
     40        mrv = UI::build<RV> (set, "marginal_rv", UI::optional ); 
    4041 
    41         RV* rv = UI::build<RV> ( set, "marginal_rv" ); 
    42         if ( rv ) 
    43                 mrv = shared_ptr<RV> ( rv ); 
    44  
    45         UI::get ( tolerance, set, "tolerance" ); 
     42        UI::get ( tolerance, set, "tolerance", UI::optional ); 
    4643} 
    4744