<commit_before>
var basicscript = require('../'),
    assert = require('assert');

// Execute simple assign

var context = new basicscript.Context();
basicscript.execute('a=1', context);
assert.equal(1, context.getValue('a'));

// Execute simple add assign

basicscript.execute('b=1+2', context);
assert.equal(3, context.getValue('b'));<commit_msg>execute test refactored to use simpleunit<commit_after>
var basicscript = require('../');

exports['execute simple assign'] = function (test) {
    var context = new basicscript.Context();
    basicscript.execute('a=1', context);
    test.equal(1, context.getValue('a'));
}

exports['execute simple add assign'] = function (test) {
    var context = new basicscript.Context();
    basicscript.execute('b=1+2', context);
    test.equal(3, context.getValue('b'));
}
{'fraction_non_alphanumeric': 0.17385943279901356, 'fraction_numerical': 0.012330456226880395, 'mean_word_length': 5.105263157894737, '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': '4391346', 'n_tokens_mistral': 241, 'n_tokens_neox': 244, 'n_words': 60}