Test suite results for test file webtbs/tw2514.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 "webtbs/tw2514.pp" information:

t_id 1184
t_adddate 2003/11/05
t_result 0
t_knownrunerror 0
t_opts -Or

Detailed test run results:

Record count: 50

Total = 50

OK=49 Percentage= 98.00

Result type Cat. Count Percentage First date Last Date
Failed to compile 1 2.0 2024/10/19 09:25:00 118 2024/10/19 09:25:00 118
sparc64 1 100.0 2024/10/19 09:25:00 118 2024/10/19 09:25:00 118
linux 1 100.0 2024/10/19 09:25:00 118 2024/10/19 09:25:00 118
3.2.3 1 100.0 2024/10/19 09:25:00 118 2024/10/19 09:25:00 118
Successfully run 49 98.0 2024/10/19 08:15:00 27 2024/10/19 13:36:00 24
i386 5 10.2 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
m68k 1 2.0 2024/10/19 09:50:00 39 2024/10/19 09:50:00 39
sparc 2 4.1 2024/10/19 10:30:00 43 2024/10/19 11:16:00 40
powerpc 6 12.2 2024/10/19 08:40:00 51 2024/10/19 13:26:00 65
arm 2 4.1 2024/10/19 09:36:00 32 2024/10/19 10:03:00 32
x86_64 12 24.5 2024/10/19 08:27:00 30 2024/10/19 13:36:00 24
powerpc64 8 16.3 2024/10/19 08:43:00 65 2024/10/19 11:23:00 69
mips 1 2.0 2024/10/19 09:54:00 35 2024/10/19 09:54:00 35
mipsel 2 4.1 2024/10/19 09:59:00 38 2024/10/19 10:35:00 142
aarch64 4 8.2 2024/10/19 08:15:00 27 2024/10/19 09:57:00 26
sparc64 2 4.1 2024/10/19 10:46:00 141 2024/10/19 11:33:00 117
riscv64 2 4.1 2024/10/19 10:25:00 33 2024/10/19 11:10:00 26
loongarch64 2 4.1 2024/10/19 09:45:00 25 2024/10/19 10:17:00 30
linux 30 61.2 2024/10/19 08:15:00 27 2024/10/19 11:38:00 25
go32v2 3 6.1 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
solaris 8 16.3 2024/10/19 13:22:00 24 2024/10/19 13:36:00 24
aix 8 16.3 2024/10/19 08:40:00 51 2024/10/19 13:26:00 65
3.3.1 32 65.3 2024/10/19 08:27:00 30 2024/10/19 13:26:00 65
3.2.3 17 34.7 2024/10/19 08:15:00 27 2024/10/19 13:36:00 24

Source:

{ %opt=-Or }

{ Source provided for Free Pascal Bug Report 2514 }
{ Submitted by "Andreas Horst" on  2003-05-28 }
{ e-mail: AndyHorst@web.de }
{$mode objfpc}
type TRGB=record
 TRGB2HSL: record
 r,g,b : extended;
 l,h,s : extended;
 end;
 end;

 THSL=record end;

function TRGB2HSL(rgb:TRGB):THSL;
var maxcolor,mincolor:Extended;
begin
  with rgb,TRGB2HSL do begin
    if r<0 then r:=0;
    if r>1 then r:=1;
    if g<0 then g:=0;
    if g>1 then g:=1;
    if b<0 then b:=0;
    if b>1 then b:=1;
    if rmaxcolor then
      maxcolor:=b;
    if maxcolor=mincolor then begin
      l:=maxcolor;
      s:=0;
      h:=0;
      Exit;
    end;
    l:=(maxcolor+mincolor)/2;
    if l<0.5 then
      s:=(maxcolor-mincolor)/(maxcolor+mincolor)
    else
      s:=(maxcolor-mincolor)/(2-maxcolor-mincolor);
    if r=maxcolor then h:=(g-b)/(maxcolor-mincolor);
    if g=maxcolor then h:=2+(b-r)/(maxcolor-mincolor);
    if b=maxcolor then h:=4+(r-g)/(maxcolor-mincolor);
  end
end;

var
  rgb : TRGB;
  i : longint;
begin
  fillchar(rgb,sizeof(rgb),0);
  for i:=0 to 100 do
    TRGB2HSL(rgb);
end.

Link to SVN view of webtbs/tw2514.pp source.