<commit_before>package core6502

import (
	"github.com/simulatedsimian/testbuddy"
	"testing"
)

type T testing.T

func (t *T) AssertEqualsNoErr(val interface{}, err error) func(val interface{}) {
	return func(val interface{}) {

	}
}

func (t *T) AssertErr(val interface{}, err error) {
	testbuddy.AssertEqual((*testing.T)(t), val, nil)
}

func TestSplit(t *testing.T) {
	tt := (*T)(t)

	testbuddy.AssertEqual(t, Split("", " \t"), []string{})
	testbuddy.AssertEqual(t, Split("   \t\t\t", " \t"), []string{})
	testbuddy.AssertEqual(t, Split("hello world", " \t"), []string{"hello", "world"})
	testbuddy.AssertEqual(t, Split("    hello     world     ", " \t"), []string{"hello", "world"})

	tt.AssertEqualsNoErr(ParseUint("123", 16))(1)
}<commit_msg>using new testbuddy api<commit_after>package core6502

import (
	"github.com/simulatedsimian/testbuddy"
	"testing"
)

type T testing.T

func TestSplit(tst *testing.T) {
	t := (*testbuddy.T)(tst)

	t.Assert(Split("", " \t")).Equal([]string{})
	t.Assert(Split("   \t\t\t", " \t")).Equal([]string{})
	t.Assert(Split("hello world", " \t")).Equal([]string{"hello", "world"})
	t.Assert(Split("    hello     world     ", " \t")).Equal([]string{"hello", "world"})
}

func TestParseUint(tst *testing.T) {
	t := (*testbuddy.T)(tst)

	t.AssertNoErr(ParseUint("1234", 16)).Equal(uint64(1234))
	t.AssertErr(ParseUint("1234", 8)).Equal(uint64(0xffffffffffffffff))
}
{'fraction_non_alphanumeric': 0.2215868477483917, 'fraction_numerical': 0.024303073624017155, 'mean_word_length': 5.008583690987124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '6058922', 'n_tokens_mistral': 570, 'n_tokens_neox': 528, 'n_words': 98}