<commit_before>package fibonacci_test

import (
	"testing"

	. "github.com/apoydence/onpar"
	"github.com/apoydence/onpar/samples/fibonacci"
)

func TestLessThanOne(t *testing.T) {
	Group("when n is 0", func() {
		Spec("it returns 1", func(tt *testing.T) {
			result := fibonacci.Fibonacci(0)

			if result != 1 {
				tt.Errorf("expected result (%d) to == %d ", result, 1)
			}
		})
	})

	Group("when n is 1", func() {
		Spec("it returns 1", func(tt *testing.T) {
			result := fibonacci.Fibonacci(1)

			if result != 1 {
				tt.Errorf("expected result (%d) to == %d ", result, 1)
			}
		})
	})

	Group("when n is greater than 1", func() {
		Spec("it returns 8 for n=5", func(tt *testing.T) {
			result := fibonacci.Fibonacci(5)

			if result != 8 {
				tt.Errorf("expected result (%d) to == %d ", result, 8)
			}
		})

		Spec("it returns 55 for n=9", func(tt *testing.T) {
			result := fibonacci.Fibonacci(9)

			if result != 55 {
				tt.Errorf("expected result (%d) to == %d ", result, 55)
			}
		})
	})

	Run(t)
}<commit_msg>Fixes sample test<commit_after>package fibonacci_test

import (
	"testing"

	"github.com/apoydence/onpar"
	"github.com/apoydence/onpar/samples/fibonacci"
)

func TestDifferentInputs(t *testing.T) {

	o := onpar.New()

	o.Group("when n is 0", func() {
		o.Spec("it returns 1", func(tt *testing.T) {
			result := fibonacci.Fibonacci(0)

			if result != 1 {
				tt.Errorf("expected result (%d) to == %d ", result, 1)
			}
		})
	})

	o.Group("when n is 1", func() {
		o.Spec("it returns 1", func(tt *testing.T) {
			result := fibonacci.Fibonacci(1)

			if result != 1 {
				tt.Errorf("expected result (%d) to == %d ", result, 1)
			}
		})
	})

	o.Group("when n is greater than 1", func() {
		o.Spec("it returns 8 for n=5", func(tt *testing.T) {
			result := fibonacci.Fibonacci(5)

			if result != 8 {
				tt.Errorf("expected result (%d) to == %d ", result, 8)
			}
		})

		o.Spec("it returns 55 for n=9", func(tt *testing.T) {
			result := fibonacci.Fibonacci(9)

			if result != 55 {
				tt.Errorf("expected result (%d) to == %d ", result, 55)
			}
		})
	})

	o.Run(t)
}
{'fraction_non_alphanumeric': 0.18624641833810887, 'fraction_numerical': 0.022922636103151862, 'mean_word_length': 3.0288461538461537, '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': '6620000', 'n_tokens_mistral': 974, 'n_tokens_neox': 822, 'n_words': 202}