<commit_before>package wif

import (
	// Stdlib
	"encoding/hex"
	"testing"
)

func TestDecode(t *testing.T) {
	for _, d := range data {
		privKey, err := Decode(d.WIF)
		if err != nil {
			t.Error(err)<commit_msg>Update decode_test.go<commit_after>package wif

import (
	// Stdlib
	"encoding/hex"
	"testing"
)


type testData struct {
	WIF           string
	PrivateKeyHex string
}

var data = []testData{
	{
		WIF:           "<KEY>",
		PrivateKeyHex: "5ad2b8df2c255d4a2996ee7d065e013e1bbb35c075ee6e5208aca44adc9a9d4c",
	},
	{
		WIF:           "<KEY>",
		PrivateKeyHex: "cf9d6121ed458f24ea456ad7ff700da39e86688988cfe5c6ed6558642cf1e32f",
	},
}

func TestDecode(t *testing.T) {
	for _, d := range data {
		privKey, err := Decode(d.WIF)
		if err != nil {
			t.Error(err)
{'fraction_non_alphanumeric': 0.1303780964797914, 'fraction_numerical': 0.09647979139504563, 'mean_word_length': 3.4651162790697674, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3799716', 'n_tokens_mistral': 382, 'n_tokens_neox': 335, 'n_words': 58}