Changeset 542

Show
Ignore:
Timestamp:
08/17/09 15:53:24 (15 years ago)
Author:
vbarta
Message:

added (basic) UIException check

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/user_info_test.cpp

    r527 r542  
    205205        shared_ptr<Transport> kati ( UI::build<Transport> ( in, "kati", UI::compulsory ) ); 
    206206        CHECK_EQUAL ( string ( "A car made in 1980 by vecernicek, having 250000 kilometers on the clock." ), kati->to_string() ); 
     207 
     208        try { 
     209                shared_ptr<Robot> failing ( UI::build<Robot> ( in, "kati", UI::compulsory ) ); 
     210                CHECK ( false ); 
     211        } catch ( UIException &exc ) { 
     212                CHECK ( exc.what() ); 
     213        } 
    207214} 
    208215