浏览代码

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

git-svn-id: trunk@37694 -
Mattias Gaertner 7 年之前
父节点
当前提交
41586014b2
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/pastojs/tests/tcmodules.pas

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

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