1
0
mirror of synced 2024-12-22 17:23:07 +01:00
x2utils/Test/X2UtBitsTest.dpr

25 lines
416 B
ObjectPascal
Raw Normal View History

2004-09-07 10:13:24 +02: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.