Browse Source

pastojs: test high(),length() of const array

git-svn-id: trunk@37694 -
Mattias Gaertner 7 years ago
parent
commit
41586014b2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/pastojs/tests/tcmodules.pas

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

@@ -6097,6 +6097,7 @@ begin
   '  OneInt: TArrInt = (7);',
   '  OneInt: TArrInt = (7);',
   '  OneStr: array of integer = (7);',
   '  OneStr: array of integer = (7);',
   //'  Chars: array of char = ''aoc'';',
   //'  Chars: array of char = ''aoc'';',
+  '  NameCount = low(Names)+high(Names)+length(Names);',
   'begin',
   'begin',
   '']);
   '']);
   ConvertProgram;
   ConvertProgram;
@@ -6107,6 +6108,7 @@ begin
     'this.Aliases = ["foo", "b"];',
     'this.Aliases = ["foo", "b"];',
     'this.OneInt = [7];',
     'this.OneInt = [7];',
     'this.OneStr = [7];',
     'this.OneStr = [7];',
+    'this.NameCount = (0 + (rtl.length($mod.Names) - 1)) + rtl.length($mod.Names);',
     '']),
     '']),
     LinesToStr([ // $mod.$main
     LinesToStr([ // $mod.$main
     '']));
     '']));