<commit_before><commit_msg>Added tests for Shell sort in Go<commit_after>package shellSort

import "testing"

func TestShellSort(t *testing.T) {
	arrs := [][]int{[]int{-2, 1, -3, 4, -1, 2, 1, -5, 4}, []int{2, 3, 7, -5, -1, 4, -10}}

	var result []int

	for _, arr := range arrs {
		result = ShellSort(arr)
		if !isSorted(result) {
			t.Errorf("ShellSort(%v) = %v", arr, result)
		}
	}
}

func isSorted(arr []int) bool {
	for i := 1; i < len(arr); i++ {
		if arr[i-1] > arr[i] {
			return false
		}
	}

	return true
}
{'fraction_non_alphanumeric': 0.20155038759689922, 'fraction_numerical': 0.03682170542635659, 'mean_word_length': 3.272727272727273, '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': '2962408', 'n_tokens_mistral': 243, 'n_tokens_neox': 220, 'n_words': 62}