If, in the opinion of the court, the grounds alleged for the contest are insufficient, the complaint shall be dismissed. If the grounds are sufficient, the court shall proceed in a summary manner and may hear evidence, examine the returns, recount the ballots, and enter such orders and decisions as the facts and the law may require.
SDCL 12-22-33