Test suite results for test file test/tstrreal1.pp

Test run data :

Free Pascal Compiler Test Suite Results

View Test suite results

Please specify search criteria:
File:
Operating system:
Processor:
Version
Date
Submitter
Machine
Comment
Limit
Cond
Category
Only failed tests
Hide skipped tests
List all tests

Test file "test/tstrreal1.pp" information:

t_id 92
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Successfully run 50 100.0 2024/05/21 05:08:00 158 2024/05/21 07:12:00 0
i386 3 6.0 2024/05/21 06:26:00 59 2024/05/21 06:56:00 236
m68k 3 6.0 2024/05/21 06:07:00 190 2024/05/21 07:06:00 244
sparc 2 4.0 2024/05/21 06:46:00 68 2024/05/21 06:55:00 81
powerpc 12 24.0 2024/05/21 06:13:00 42 2024/05/21 06:53:00 75
arm 2 4.0 2024/05/21 06:43:00 210 2024/05/21 06:52:00 38
x86_64 7 14.0 2024/05/21 06:10:00 31 2024/05/21 06:23:00 27
powerpc64 4 8.0 2024/05/21 05:53:00 132 2024/05/21 06:38:00 212
mips 3 6.0 2024/05/21 06:16:00 240 2024/05/21 07:11:00 0
mipsel 2 4.0 2024/05/21 06:07:00 151 2024/05/21 06:23:00 148
aarch64 9 18.0 2024/05/21 06:15:00 41 2024/05/21 07:12:00 0
sparc64 2 4.0 2024/05/21 05:08:00 158 2024/05/21 07:11:00 0
loongarch64 1 2.0 2024/05/21 07:01:00 34 2024/05/21 07:01:00 34
linux 37 74.0 2024/05/21 05:08:00 158 2024/05/21 07:12:00 0
go32v2 1 2.0 2024/05/21 06:26:00 59 2024/05/21 06:26:00 59
solaris 6 12.0 2024/05/21 06:10:00 31 2024/05/21 06:21:00 29
darwin 6 12.0 2024/05/21 06:15:00 41 2024/05/21 07:04:00 38
3.3.1 26 52.0 2024/05/21 05:08:00 158 2024/05/21 07:12:00 0
3.2.3 24 48.0 2024/05/21 06:07:00 151 2024/05/21 07:11:00 0

Source:

const
  s: array[0..16] of string[13] =
    ('99999.900000',
     '99999.990000',
     '99999.999000',
     '99999.999900',
     '99999.999990',
     '99999.999999',
     '100000.000000',
     '100000.000000',
     '100000.000000',
     '100000.000000',
     '100000.000000',
     '100000.000000',
     '100000.000000',
     '100000.000000',
     '100000.000000',
     '100000.000000',
     '100000.000000');

var
  e,e2,e3: double;
  s2: string;
  c: longint;

begin
  e := 100000.0;
  e2 := 0.1;
  c := 0;
  repeat
    e3 := e-e2;
    str(e3:0:6,s2);
    writeln(s2);
    if s2 <> s[c] then
      begin
        writeln('  Error, should be ',s[c]);
        halt(1);
      end;
    e2 := e2 /10.0;
    inc(c);
  until e2 < 1e-17;
end.

Link to SVN view of test/tstrreal1.pp source.