<commit_before>/* global describe, it */

var assert = require('assert')
var bs58check = require('bs58check')
var wif = require('../')
var fixtures = require('./fixtures')

describe('WIF', function () {
  describe('encode', function () {
    fixtures.valid.forEach(function (f) {
      it('returns ' + f.WIF + ' for ' + f.d.slice(0, 20) + '... (' + f.version + ')', function () {
        var actual = wif.encode(f.version, new Buffer(f.d, 'hex'), f.compressed)

        assert.strictEqual(actual, f.WIF)
      })
    })
  })

  describe('decode/decodeRaw', function () {<commit_msg>tests: remove unused import<commit_after>/* global describe, it */

var assert = require('assert')
var wif = require('../')
var fixtures = require('./fixtures')

describe('WIF', function () {
  describe('encode', function () {
    fixtures.valid.forEach(function (f) {
      it('returns ' + f.WIF + ' for ' + f.d.slice(0, 20) + '... (' + f.version + ')', function () {
        var actual = wif.encode(f.version, new Buffer(f.d, 'hex'), f.compressed)

        assert.strictEqual(actual, f.WIF)
      })
    })
  })

  describe('decode/decodeRaw', function () {
{'fraction_non_alphanumeric': 0.20157756354075373, 'fraction_numerical': 0.008764241893076249, 'mean_word_length': 3.13768115942029, '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': '3545984', 'n_tokens_mistral': 388, 'n_tokens_neox': 372, 'n_words': 80}