/[svn]/linuxsampler/trunk/src/scriptvm/tests/NKSPCoreLangTest.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/tests/NKSPCoreLangTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3791 by schoenebeck, Sun Jun 14 14:29:41 2020 UTC revision 3792 by schoenebeck, Mon Jun 15 15:26:10 2020 UTC
# Line 5804  end on Line 5804  end on
5804      runScript({      runScript({
5805          .code = R"NKSP_CODE(          .code = R"NKSP_CODE(
5806  on init  on init
5807      declare %a[4] := ( 1, 2, 3 )
5808      exit( %a[0] + %a[1] + %a[2] + %a[3] )
5809    end on
5810    )NKSP_CODE",
5811            .expectParseWarning = true, // less values assigned than array size declared
5812            .expectIntExitResult = (1 + 2 + 3 + 0)
5813        });
5814    
5815        runScript({
5816            .code = R"NKSP_CODE(
5817    on init
5818    declare %a[] := ( 1, 2, 3 )    declare %a[] := ( 1, 2, 3 )
5819    exit( %a[0] + %a[1] + %a[2] )    exit( %a[0] + %a[1] + %a[2] )
5820  end on  end on
# Line 6465  end on Line 6476  end on
6476      });      });
6477    
6478      runScript({      runScript({
6479            .code = R"NKSP_CODE(
6480    on init
6481      declare ?a[4] := ( 1.1, 2.2, 3.3 )
6482      exit( ?a[0] + ?a[1] + ?a[2] + ?a[3] )
6483    end on
6484    )NKSP_CODE",
6485            .expectParseWarning = true, // less values assigned than array size declared
6486            .expectRealExitResult = (1.1 + 2.2 + 3.3 + 0.0)
6487        });
6488    
6489        runScript({
6490          .code = R"NKSP_CODE(          .code = R"NKSP_CODE(
6491  on init  on init
6492    declare ?a[] := ( 1.1, 2.2, 3.3 )    declare ?a[] := ( 1.1, 2.2, 3.3 )

Legend:
Removed from v.3791  
changed lines
  Added in v.3792

  ViewVC Help
Powered by ViewVC