<commit_before>package challenge21

import (
	"testing"
)

func TestExtract(t *testing.T) {
	Seed(123)
	outputs := make([]int, 10)
	for i := 0; i < 10; i++ {
		outputs[i] = Extract()
	}

	for i, num := range outputs {
		for j, otherNum := range outputs {
			if j == i {
				continue
			}
			if num == otherNum {
				// assuming that there shouldn't be a repeated number
				// in 10 samples
				t.Fail()
			}
		}
	}
}<commit_msg>Fix 21 unit test to just check seed -> result<commit_after>package challenge21

import (
	"testing"
)

func TestExtract(t *testing.T) {
	Seed(123)
	output0 := Extract()

	Seed(123)
	output1 := Extract()

	Seed(321)
	output2 := Extract()

	// same seeds should result in same first result
	if output0 != output1 {
		t.Fail()
	}

	// different seeds should result in different first result
	if output2 == output1 {
		t.Fail()
	}
}
{'fraction_non_alphanumeric': 0.13185530921820304, 'fraction_numerical': 0.03733955659276546, 'mean_word_length': 2.9722222222222223, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7458139', 'n_tokens_mistral': 356, 'n_tokens_neox': 302, 'n_words': 96}