<commit_before>defmodule Poker.DeckTest do
  use ExUnit.Case, async: true

  alias Poker.Deck

  describe "Deck.new/0" do
    test "deck has 52 cards" do
      assert Enum.count(Deck.new()) == 52
    end
  end
end<commit_msg>More tests<commit_after>defmodule Poker.DeckTest do
  use ExUnit.Case, async: true

  alias Poker.Deck

  describe "Deck.new/0" do
    test "deck has 52 cards" do
      assert Enum.count(Deck.new()) == 52
    end

    test "is without duplicates" do
      assert Enum.count(Enum.uniq(Deck.new())) == 52
    end

    test "has 13 cards of each suite" do
      counts = Deck.new()
      |> Enum.reduce %{}, fn({_rank, suit}, acc) ->
        Map.update(acc, suit, 1, &(&1 + 1))
      end
      assert counts == %{spades: 13, clubs: 13, hearts: 13, diamonds: 13}
    end
  end
end
{'fraction_non_alphanumeric': 0.12609238451935081, 'fraction_numerical': 0.031210986267166042, 'mean_word_length': 2.6126126126126126, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5298078', 'n_tokens_mistral': 312, 'n_tokens_neox': 279, 'n_words': 88}