<commit_before>package md5_test

import (
	"github.com/ujanssen/learning-go-lang/md5"
	"testing"
)

func testMd5(in, want string, t *testing.T) {
	if got := md5.Hash(in); want != got {
		t.Errorf("got %v, want %v", got, want)
	}
}

func TestFranz(t *testing.T) {
	testMd5("Franz jagt im komplett verwahrlosten Taxi quer durch Bayern", "a3cca2b2aa1e3b5b3b5aad99a8529074", t)
}

func TestFrank(t *testing.T) {
	testMd5("Frank jagt im komplett verwahrlosten Taxi quer durch Bayern", "7e716d0e702df0505fc72e2b89467910", t)
}

func TestEmpty(t *testing.T) {
	testMd5("", "d41d8cd98f00b204e9800998ecf8427e", t)
}<commit_msg>refactor test<commit_after>package md5_test

import (
	"github.com/ujanssen/learning-go-lang/md5"
	"testing"
)

func testMd5(in, want string, t *testing.T) {
	if got := md5.Hash(in); want != got {
		t.Errorf("got %v, want %v", got, want)
	}
}

const text string = " jagt im komplett verwahrlosten Taxi quer durch Bayern"

func TestFranz(t *testing.T) {
	testMd5("Franz"+text, "a3cca2b2aa1e3b5b3b5aad99a8529074", t)
}

func TestFrank(t *testing.T) {
	testMd5("Frank"+text, "7e716d0e702df0505fc72e2b89467910", t)
}

func TestEmpty(t *testing.T) {
	testMd5("", "d41d8cd98f00b204e9800998ecf8427e", t)
}
{'fraction_non_alphanumeric': 0.14391447368421054, 'fraction_numerical': 0.1118421052631579, 'mean_word_length': 5.405263157894737, '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': '2797112', 'n_tokens_mistral': 621, 'n_tokens_neox': 560, 'n_words': 108}