~eda-qa/leaflang/cpp

« back to all changes in this revision

Viewing changes to src/test/type_converter_test.cpp

  • Committer: edA-qa mort-ora-y
  • Date: 2017-06-03 05:03:54 UTC
  • mfrom: (98.1.18 typefixes)
  • Revision ID: eda-qa@disemia.com-20170603050354-6hfg5huvq56zjs66
merging typefixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
                check_serial( true ) {
33
33
        }
34
34
        
 
35
        unsigned determine_flags = 0;
 
36
        
35
37
        void operator()( char const * sto, char const * sfrom, 
36
38
                char const * expect )
37
39
        {
44
46
 
45
47
                type_ref to, from;
46
48
                if( sto )
47
 
                        to = determine_type( ex.platform_fix(sto).c_str() );
48
 
                from = determine_type( ex.platform_fix(sfrom).c_str() );
 
49
                        to = determine_type( ex.platform_fix(sto).c_str(), determine_flags );
 
50
                from = determine_type( ex.platform_fix(sfrom).c_str(), determine_flags );
49
51
 
50
52
                DEBUG( "FROM", dump::get( from ) );
51
53
                if( check_serial ) {
169
171
 
170
172
BOOST_AUTO_TEST_CASE( param_func ) {
171
173
        tester t;
 
174
        t.determine_flags = type_identifier::df_allow_param;
172
175
        t( "( : integer )->()", "( : )->()", "c_param_inst「( : integer ) -> ( )」" );
173
176
 
174
177
}