/[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 3815 by schoenebeck, Thu Aug 6 12:15:02 2020 UTC revision 3816 by schoenebeck, Fri Aug 28 17:28:48 2020 UTC
# Line 1391  end on Line 1391  end on
1391          .expectExitResultFinal = false          .expectExitResultFinal = false
1392      });      });
1393    
1394        // string tests ...
1395    
1396        runScript({
1397            .code = R"NKSP_CODE(
1398    on init
1399      exit(-"text")
1400    end on
1401    )NKSP_CODE",
1402            .expectParseError = true // unary '-' operator requires number
1403        });
1404    
1405        runScript({
1406            .code = R"NKSP_CODE(
1407    on init
1408      declare @s := "text"
1409      exit(-@s)
1410    end on
1411    )NKSP_CODE",
1412            .expectParseError = true // unary '-' operator requires number
1413        });
1414    
1415      //TODO: the following are unary '+' operator tests which should be moved to their own function (lazy me).      //TODO: the following are unary '+' operator tests which should be moved to their own function (lazy me).
1416    
1417      runScript({      runScript({
# Line 1431  end on Line 1452  end on
1452          .expectRealExitResult = 0.29          .expectRealExitResult = 0.29
1453      });      });
1454    
1455        // string tests ...
1456    
1457        runScript({
1458            .code = R"NKSP_CODE(
1459    on init
1460      exit(+"text")
1461    end on
1462    )NKSP_CODE",
1463            .expectParseError = true // unary '+' operator requires number
1464        });
1465    
1466        runScript({
1467            .code = R"NKSP_CODE(
1468    on init
1469      declare @s := "text"
1470      exit(+@s)
1471    end on
1472    )NKSP_CODE",
1473            .expectParseError = true // unary '+' operator requires number
1474        });
1475    
1476      #if !SILENT_TEST      #if !SILENT_TEST
1477      std::cout << std::endl;      std::cout << std::endl;
1478      #endif      #endif

Legend:
Removed from v.3815  
changed lines
  Added in v.3816

  ViewVC Help
Powered by ViewVC