--  The hash set run: members included once, however often given, and asked after.
with Ada.Text_IO;
with Verada.Containers.Hash_Sets;
procedure Main is
   use Verada.Containers.Hash_Sets;
   type Keys is array (Positive range <>) of Integer;
   Given : constant Keys := [7, 14, 7, 21, 14, 1_000_003];
   S : Set;
begin
   for I in Given'Range loop
      pragma Loop_Invariant (Length (S) < I);
      Include (S, Given (I));
   end loop;
   Ada.Text_IO.Put_Line ("members:" & Integer'Image (Length (S)));
   Ada.Text_IO.Put_Line ("has 14: " & Boolean'Image (Contains (S, 14)) & ", has 15: " & Boolean'Image (Contains (S, 15)));
   Clear (S);
   Ada.Text_IO.Put_Line ("after clearing:" & Integer'Image (Length (S)));
end Main;
