Changeset 55 for trunk/t3q-examples


Ignore:
Timestamp:
02/21/12 11:30:46 (13 years ago)
Author:
phdmakk
Message:
  • updated and improved examples
Location:
trunk/t3q-examples
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/t3q-examples/CodeFormatting/Generic/formattingIssues.ttcn3

    r4 r55  
    11module formattingIssues { 
    22        import from a all; 
    3         import from a all; 
     3        import from ab all; 
    44         
    5         group a { 
     5        group ga { 
    66        function f_ssMsInitiateDhcpv4(){ 
    77                //blas bla blas 
     
    1111        } 
    1212    function f_ssMsStartDhcpv4 (){ 
    13                 var integer a := b; 
     13                var integer ai := b; 
    1414  
    1515    } 
  • trunk/t3q-examples/NamingConventions/NC_parameters_functions_testCases_altsteps.ttcn3

    r4 r55  
    1515    //altsteps, good and bad 
    1616    altstep a_a1()  { 
    17     } 
     17    } with {extension "Description: Does IUT behaves as UA Server ?"} 
    1818 
    1919    altstep a_1()  { 
  • trunk/t3q-examples/checkLogFormat/checkLogFormat.ttcn3

    r39 r55  
    66        //incorrect 
    77        log ( "***" ) 
     8         
     9        test(); 
     10        //correct 
     11        log("*** f_1: INFO: OK - random value = " & bit2str(v_random) & " ***"); 
     12         
     13        test(); 
     14        //correct - function calls are ignored 
     15        log("*** f_1: " & getMyStatus() & "INFO: OK - random value = " & bit2str(v_random) & " ***"); 
     16         
     17        test(); 
     18        //incorrect - charstring function call parameters are taken into consideration resulting in 
     19        //an incorrect log statement format 
     20        log("*** f_1: " & getMyStatus("1") & "INFO: OK - random value = " & bit2str(v_random) & " ***"); 
     21         
    822    } 
    923 
Note: See TracChangeset for help on using the changeset viewer.