<commit_before>var test = require('tape');
var nonary2bts = require('./').nonary2bts;
var bts2nonary = require('./').bts2nonary;

test('nonary2bts', function(t) {
  t.equal(nonary2bts('4'), '11');
  t.equal(nonary2bts('40'), '1100');
  t.equal(nonary2bts('i'), '0i');
  t.equal(nonary2bts('m'), 'ii');
  t.equal(nonary2bts('④③②①jkm01234', '_'), 'ii_i0_i1_0i_i1_i0_ii_00_01_1i_10_11');
  t.end();
});

test('bts2nonary', function(t) {
  t.equal(bts2nonary('0'), '0');
  t.equal(bts2nonary('i'), 'i');
  t.equal(bts2nonary('10'), '3');
  t.equal(bts2nonary('i1'), 'j');
  t.equal(bts2nonary('i110'), 'j3');
  t.equal(bts2nonary('1i110'), '1j3');
  t.end();
});<commit_msg>Fix tests for new default nonary character set (abcd0wxyz)<commit_after>var test = require('tape');
var nonary2bts = require('./').nonary2bts;
var bts2nonary = require('./').bts2nonary;

test('nonary2bts', function(t) {
  t.equal(nonary2bts('4'), '11');
  t.equal(nonary2bts('40'), '1100');
  t.equal(nonary2bts('i'), '0i');
  t.equal(nonary2bts('m'), 'ii');
  t.equal(nonary2bts('④③②①jkm01234', '_'), 'ii_i0_i1_0i_i1_i0_ii_00_01_1i_10_11');
  t.end();
});

test('bts2nonary', function(t) {
  t.equal(bts2nonary('0'), '0');
  t.equal(bts2nonary('i'), 'w');
  t.equal(bts2nonary('10'), 'c');
  t.equal(bts2nonary('i1'), 'x');
  t.equal(bts2nonary('i110'), 'xc');
  t.equal(bts2nonary('1i110'), 'axc');
  t.end();
});
{'fraction_non_alphanumeric': 0.259927797833935, 'fraction_numerical': 0.08736462093862817, 'mean_word_length': 6.2565445026178015, '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': '3641303', 'n_tokens_mistral': 721, 'n_tokens_neox': 684, 'n_words': 82}