1
0
mirror of synced 2024-11-09 21:09:16 +00:00
x2utils/Test/X2UtBitsTest.dpr

25 lines
416 B
ObjectPascal
Raw Normal View History

2004-09-07 08:13:24 +00:00
program X2UtBitsTest;
{$APPTYPE CONSOLE}
uses
X2UtBits;
var
iTest: Integer;
bTest: T32Bits absolute iTest;
sTest: String;
begin
Randomize();
iTest := Random(MaxInt);
sTest := BitsToString(bTest, bs32);
WriteLn('Value: ', iTest);
WriteLn('Bits: ', sTest);
bTest := StringToBits(sTest);
WriteLn('Reversed: ', iTest);
ReadLn;
end.