Browse Source

Fix range error in tstruth2bu.pp test

Pierre Muller 1 year ago
parent
commit
ad637e8f09
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/test/units/strutils/tstruth2bu.pp

+ 3 - 3
tests/test/units/strutils/tstruth2bu.pp

@@ -134,7 +134,7 @@ begin
   if BinValueBytes[0] <> 154 then halt(10);
   if BinValueBytes[0] <> 154 then halt(10);
   if BinValueBytes[1] <> 188 then halt(10);
   if BinValueBytes[1] <> 188 then halt(10);
   if BinValueBytes[2] <> 222 then halt(10);
   if BinValueBytes[2] <> 222 then halt(10);
-  if BinValueBytes[4] <> 0 then halt(10);
+  if BinValueBytes[3] <> 0 then halt(10);
 
 
   SetLength(BinValueBytes, HexInLen);
   SetLength(BinValueBytes, HexInLen);
   FillChar(BinValueBytes[0], Length(BinValueBytes), 0);
   FillChar(BinValueBytes[0], Length(BinValueBytes), 0);
@@ -144,7 +144,7 @@ begin
   if BinValueBytes[0] <> 154 then halt(11);
   if BinValueBytes[0] <> 154 then halt(11);
   if BinValueBytes[1] <> 188 then halt(11);
   if BinValueBytes[1] <> 188 then halt(11);
   if BinValueBytes[2] <> 222 then halt(11);
   if BinValueBytes[2] <> 222 then halt(11);
-  if BinValueBytes[4] <> 0 then halt(11);
+  if BinValueBytes[3] <> 0 then halt(11);
 
 
   SetLength(BinValueBytes, HexInLen);
   SetLength(BinValueBytes, HexInLen);
   FillChar(BinValueBytes[0], Length(BinValueBytes), 0);
   FillChar(BinValueBytes[0], Length(BinValueBytes), 0);
@@ -154,7 +154,7 @@ begin
   if BinValueBytes[0] <> 154 then halt(12);
   if BinValueBytes[0] <> 154 then halt(12);
   if BinValueBytes[1] <> 188 then halt(12);
   if BinValueBytes[1] <> 188 then halt(12);
   if BinValueBytes[2] <> 222 then halt(12);
   if BinValueBytes[2] <> 222 then halt(12);
-  if BinValueBytes[4] <> 0 then halt(12);
+  if BinValueBytes[3] <> 0 then halt(12);
 
 
   {* test complex offset methods *}
   {* test complex offset methods *}
   // ansistring
   // ansistring