<commit_before><commit_msg>Start adding tests<commit_after>package main

import (
	"github.com/THUNDERGROOVE/SDETool/category"
	"math"
	"testing"
)

func roundStackingMultipler(x float64) int {
	return int(math.Floor(x * 100))
}

func TestStackingMultiplier(t *testing.T) {
	for i := 0; i < 5; i++ { // Only potential for 5 damage mods
		switch i {
		case 1:
			if roundStackingMultipler(StackingMultiplier(i)) != 100 {
				t.Fatal("Stacking multipler failed for", i, "got", roundStackingMultipler(StackingMultiplier(i)))
				t.FailNow()
			}
		case 2:
			if roundStackingMultipler(StackingMultiplier(i)) != 86 {
				t.Fatal("Stacking multipler failed for", i, "got", roundStackingMultipler(StackingMultiplier(i)))
				t.FailNow()
			}
		case 3:
			if roundStackingMultipler(StackingMultiplier(i)) != 57 {
				t.Fatal("Stacking multipler failed for", i, "got", roundStackingMultipler(StackingMultiplier(i)))
				t.FailNow()
			}
		case 4:
			if roundStackingMultipler(StackingMultiplier(i)) != 28 {
				t.Fatal("Stacking multipler failed for", i, "got", roundStackingMultipler(StackingMultiplier(i)))
				t.FailNow()
			}
		case 5:
			if roundStackingMultipler(StackingMultiplier(i)) != 10 {
				t.Fatal("Stacking multipler failed for", i, "got", roundStackingMultipler(StackingMultiplier(i)))
				t.FailNow()
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.13378684807256236, 'fraction_numerical': 0.018140589569160998, 'mean_word_length': 4.586497890295359, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5723936', 'n_tokens_mistral': 548, 'n_tokens_neox': 484, 'n_words': 97}