Browse Source

pastojs: fixed test

git-svn-id: trunk@43297 -
Mattias Gaertner 5 years ago
parent
commit
03d003d0ba
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/pastojs/tests/tcmodules.pas

+ 2 - 1
packages/pastojs/tests/tcmodules.pas

@@ -2443,8 +2443,9 @@ begin
   StartProgram(false);
   Add('{$modeswitch cblocks-}');
   Add('begin');
-  SetExpectedScannerError('Invalid mode switch: "cblocks-"',nErrInvalidModeSwitch);
   ConvertProgram;
+  CheckHint(mtWarning,nErrInvalidModeSwitch,'Warning: test1.pp(3,23) : Invalid mode switch: "cblocks"');
+  CheckResolverUnexpectedHints();
 end;
 
 procedure TTestModule.TestUnit_UseSystem;