<commit_before>var assert = require('assert');
var math = require('../../../index');
var stepper = require('../../../lib/expression/step-solver/stepper.js');
var step = stepper.step;
var simplify = stepper.simplify;

describe('arithmetic stepping', function () {
	it('2+2 -> 4', function () {
	  assert.deepEqual(math.parse('4'), step(math.parse('2+2'))[0]);
	});
	it('(2+2) -> 4', function () {
	  assert.deepEqual(math.parse('4'), step(math.parse('(2+2)'))[0]);
	});
	it('(2+2)*5 -> 4*5', function () {
	  assert.deepEqual(math.parse('4*5'), step(math.parse('(2+2)*5'))[0]);
	});
	it('5*(2+2) -> 5*4', function () {
	  assert.deepEqual(math.parse('5*4'), step(math.parse('5*(2+2)'))[0]);
	});
	it('(((5))) -> 5', function () {
	  assert.deepEqual(math.parse('5'), step(math.parse('(((5)))'))[0]);
	});
	// TODO: remove unecessary parens before starting to step
	it('(2+(2)) -> 4', function () {
	  assert.deepEqual(math.parse('2+2'), step(math.parse('(2+(2))'))[0]);
	});
	it('(2+(2)+7) -> 2+2+7', function () {<commit_msg>fixed wrong test description<commit_after>var assert = require('assert');
var math = require('../../../index');
var stepper = require('../../../lib/expression/step-solver/stepper.js');
var step = stepper.step;
var simplify = stepper.simplify;

describe('arithmetic stepping', function () {
	it('2+2 -> 4', function () {
	  assert.deepEqual(math.parse('4'), step(math.parse('2+2'))[0]);
	});
	it('(2+2) -> 4', function () {
	  assert.deepEqual(math.parse('4'), step(math.parse('(2+2)'))[0]);
	});
	it('(2+2)*5 -> 4*5', function () {
	  assert.deepEqual(math.parse('4*5'), step(math.parse('(2+2)*5'))[0]);
	});
	it('5*(2+2) -> 5*4', function () {
	  assert.deepEqual(math.parse('5*4'), step(math.parse('5*(2+2)'))[0]);
	});
	it('(((5))) -> 5', function () {
	  assert.deepEqual(math.parse('5'), step(math.parse('(((5)))'))[0]);
	});
	// TODO: remove unecessary parens before starting to step so this is 4
	it('(2+(2)) -> 2+2', function () {
	  assert.deepEqual(math.parse('2+2'), step(math.parse('(2+(2))'))[0]);
	});
	it('(2+(2)+7) -> 2+2+7', function () {
{'fraction_non_alphanumeric': 0.30240384615384613, 'fraction_numerical': 0.05384615384615385, 'mean_word_length': 4.717032967032967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '5516162', 'n_tokens_mistral': 835, 'n_tokens_neox': 801, 'n_words': 125}