<commit_before>/*
Tests
*/
package main

import (
	"fmt"
	// "strings"
	"testing"
)

func TestIndentConnects(t *testing.T) {
	source := readFileToSlice("./tests_data/source_indentConnects.cpp")
	result := readFileToSlice("./tests_data/result_indentConnects.cpp")

	indentConnects(source)

	for i, line := range source {
		if line != result[i] {
			fmt.Println("|" + line + "|")
			fmt.Println("|" + result[i] + "|")
			t.FailNow()
		}
	}
}<commit_msg>Add colors to test output<commit_after>/*
Tests
*/
package main

import (
	"fmt"
	"github.com/fatih/color"
	"testing"
)

func TestIndentConnects(t *testing.T) {
	source := readFileToSlice("./tests_data/source_indentConnects.cpp")
	result := readFileToSlice("./tests_data/result_indentConnects.cpp")

	indentConnects(source)

	for i, line := range source {
		if line != result[i] {
			color.Set(color.FgYellow)
			fmt.Printf("\nTheses lines are different: \n%s\n%s\n\n", line, result[i])
			color.Set(color.FgRed)
			t.FailNow()
			color.Unset()
		}
	}
}
{'fraction_non_alphanumeric': 0.17031872509960158, 'fraction_numerical': 0.0, 'mean_word_length': 4.075757575757576, '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': '66325', 'n_tokens_mistral': 415, 'n_tokens_neox': 389, 'n_words': 68}