Browse Source

* fixed test for comp=int64;

florian 21 years ago
parent
commit
169a2e92c3
1 changed files with 7 additions and 2 deletions
  1. 7 2
      tests/webtbs/tw2129.pp

+ 7 - 2
tests/webtbs/tw2129.pp

@@ -32,14 +32,19 @@ var
 begin
   dbl1 := -1e-128;
   comp1 := comp(dbl1);
+{$ifdef cpuarm}
+  comp1:=swap(comp1);
+{$endif cpuarm}
   str(comp1,s);
 {$if defined(cpui386) or defined(cpux86_64)}
   if s<>'-6.53142228756617E+0018' then
 {$else cpui386}
-  if s<>'-6531422287566170215' then
+  { this constant has been verified and is correct (FK) }
+  if s<>'-6531422287566170211' then
 {$endif cpui386}
     begin
+      writeln(s);
       writeln('error');
       halt(1);
     end;
-end.
+end.