<commit_before>require "minitest/autorun"
require "minitest/spec"
require_relative "../lib/hand_score.rb"

describe HandScore do 
  let(:hand_score) { HandScore.new }

  describe "scores with less than 7 die" do
    it "should return 100" do
      score = hand_score.score_sets(sets: [[1]])
      assert_equal score, 100
    end
  end
end<commit_msg>add more score tests<commit_after>require "minitest/autorun"
require "minitest/spec"
require_relative "../lib/hand_score.rb"

describe HandScore do 
  let(:hand_score) { HandScore.new }

  describe "scores with less than 7 die using one number" do
    it "should return 100" do
      score = hand_score.score_sets(sets: [[1]])
      assert_equal score, 100
    end

    it "should return 1000" do
    	score = hand_score.score_sets(sets: [[1, 1, 1]])
      assert_equal score, 1000
    end

    it "should return 2000" do
    	score = hand_score.score_sets(sets: [[1, 1, 1, 1]])
      assert_equal score, 2000
    end

    it "should return 3000" do
    	score = hand_score.score_sets(sets: [[1, 1, 1, 1, 1]])
      assert_equal score, 3000
    end

    it "should return 4000" do
    	score = hand_score.score_sets(sets: [[1, 1, 1, 1, 1, 1]])
      assert_equal score, 4000
    end

    it "should return 100" do
      score = hand_score.score_sets(sets: [[5, 5]])
      assert_equal score, 100
    end

    it "should return 500" do
    	score = hand_score.score_sets(sets: [[5, 5, 5]])
      assert_equal score, 500
    end

    it "should return 1000" do
      score = hand_score.score_sets(sets: [[5, 5, 5, 5]])
      assert_equal score, 1000
    end

    it "should return 200" do
      score = hand_score.score_sets(sets: [[2,2,2]])
      assert_equal score, 200
    end

    it "should return 300" do
      score = hand_score.score_sets(sets: [[3,3,3]])
      assert_equal score, 300
    end

    it "should return 400" do
      score = hand_score.score_sets(sets: [[4, 4, 4]])
      assert_equal score, 400
    end

    it "should return 600" do
      score = hand_score.score_sets(sets: [[6, 6, 6]])
      assert_equal score, 600
    end

    it "should return 1200" do
      score = hand_score.score_sets(sets: [[6, 6, 6, 6]])
      assert_equal score, 1200
    end

    it "should return 0" do
      score = hand_score.score_sets(sets: [])
      assert_equal score, 0
    end
  end
end
{'fraction_non_alphanumeric': 0.10950149126544526, 'fraction_numerical': 0.06178099701746911, 'mean_word_length': 2.726984126984127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6683457', 'n_tokens_mistral': 928, 'n_tokens_neox': 795, 'n_words': 253}