<commit_before>package sss

import (
	"testing"
)

var (
	p  = polynomial{1, 0, 2, 3}
	p2 = polynomial{70, 32, 6}
)

func TestPolyDegree(t *testing.T) {
	if p.degree() != 3 {
		t.Errorf("Expected %v to be a 3rd degree polynomial but was %d", p, p.degree())
	}
}

func TestPolyEval(t *testing.T) {
	expected := element(17)
	actual := p.eval(2)
	if actual != expected {
		t.Errorf("Expected %v but was %v", expected, actual)
	}
}

func TestPolyEquals(t *testing.T) {
	p3 := polynomial{70, 32, 5}

	if !equal(p, p) {
		t.Errorf("%v should equal %v", p, p)
	}

	if equal(p, p2) {
		t.Errorf("%v should not equal %v", p, p2)
	}

	if equal(p, p3) {
		t.Errorf("%v should not equal %v", p, p3)
	}
}
<commit_msg>Tighten up polynomial tests.<commit_after>package sss

import (
	"testing"
)

var (
	p  = polynomial{1, 0, 2, 3}
	p2 = polynomial{70, 32, 6}
)

func TestPolyDegree(t *testing.T) {
	expected := 3
	actual := p.degree()
	if actual != expected {
		t.Errorf("Expected %v but was %v", expected, actual)
	}
}

func TestPolyEval(t *testing.T) {
	expected := element(17)
	actual := p.eval(2)
	if actual != expected {
		t.Errorf("Expected %v but was %v", expected, actual)
	}
}

func TestPolyEquals(t *testing.T) {
	p3 := polynomial{70, 32, 5}

	if !equal(p, p) {
		t.Errorf("%v should equal %v", p, p)
	}

	if equal(p, p2) {
		t.Errorf("%v should not equal %v", p, p2)
	}

	if equal(p, p3) {
		t.Errorf("%v should not equal %v", p, p3)
	}
}

{'fraction_non_alphanumeric': 0.1796657381615599, 'fraction_numerical': 0.034122562674094706, 'mean_word_length': 3.435185185185185, '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': '7085973', 'n_tokens_mistral': 650, 'n_tokens_neox': 604, 'n_words': 173}