Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / webtbs / uw17220a.pp
Size: Mime:
unit uw17220a;
{$ifdef fpc}
{$mode objfpc}{$H+}
{$endif}
interface

uses
  SysUtils;

procedure test;
function IntToHEX(Value, Digits: int64): string; overload;

implementation

function IntToHEX(Value, Digits: int64): string;
begin
  IntToHEX := 'passedq';
end;

function IntToHEX(Value, Digits: longint): string; overload;
begin
  IntToHEX := 'passedl';
end;

procedure test;
  var
    l: longint;
    i: int64;
  begin
    l:=0;
    i:=0;
    if uw17220a.inttohex(l,l)<>'passedl' then
      halt(1);
    if uw17220a.inttohex(i,i)<>'passedq' then
      halt(2);
  end;

end.