<commit_before>var mocha = require('mocha');
var assert = require('assert');
var should = require('should');
let nesulator = require('./nesulator');

describe('Nesulator', function() {
  beforeEach(function() {
    nesulator.reset();
  });

  describe('#run', function() {
    it('should exist', function() {
      should.exist(nesulator.run);
    });
  });

  describe('#registers', function() {
    it('should exist', function() {
      should.exist(nesulator.registers);
    });

    it('should contain the X register', function() {
      should.exist(nesulator.registers().x);
    });

    it('should contain the accumulator', function() {
      should.exist(nesulator.registers().acc);
    });
  });<commit_msg>added a check for the a register<commit_after>var mocha = require('mocha');
var assert = require('assert');
var should = require('should');
let nesulator = require('./nesulator');

describe('Nesulator', function() {
  beforeEach(function() {
    nesulator.reset();
  });

  describe('#run', function() {
    it('should exist', function() {
      should.exist(nesulator.run);
    });
  });

  describe('#registers', function() {
    it('should exist', function() {
      should.exist(nesulator.registers);
    });

    it('should contain the X register', function() {
      should.exist(nesulator.registers().x);
    });

    it('should contain the A register', function() {
      should.exist(nesulator.registers().a);
    });

    it('should contain the accumulator', function() {
      should.exist(nesulator.registers().acc);
    });
  });
{'fraction_non_alphanumeric': 0.18485237483953787, 'fraction_numerical': 0.0, 'mean_word_length': 3.6957831325301207, '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': '3118534', 'n_tokens_mistral': 466, 'n_tokens_neox': 450, 'n_words': 95}