<commit_before>
var ajlisp = require('../lib/ajlisp');

exports['Invoke String Native toUpperCase'] = function(test) {
	var result = ajlisp.evaluateText('(.toUpperCase "foo")');
	
	test.equal(result, "FOO");
	
	test.done();
}

exports['Invoke String Native slice'] = function(test) {
	var result = ajlisp.evaluateText('(.slice "foo" 1)');
	
	test.equal(result, "oo");
	
	test.done();
}


exports['Invoke String Native length'] = function(test) {
	var result = ajlisp.evaluateText('(.length "foo")');
	
	test.equal(result, 3);
	
	test.done();
}

exports['Global in Environment'] = function(test) {
	test.equal(ajlisp.environment.global, global);
	
	test.done();
}
<commit_msg>Additional require, global tests<commit_after>
var ajlisp = require('../lib/ajlisp');

exports['Invoke String Native toUpperCase'] = function(test) {
	var result = ajlisp.evaluateText('(.toUpperCase "foo")');
	
	test.equal(result, "FOO");
	
	test.done();
}

exports['Invoke String Native slice'] = function(test) {
	var result = ajlisp.evaluateText('(.slice "foo" 1)');
	
	test.equal(result, "oo");
	
	test.done();
}

exports['Invoke String Native length'] = function(test) {
	var result = ajlisp.evaluateText('(.length "foo")');
	
	test.equal(result, 3);
	
	test.done();
}

exports['Evaluate global'] = function(test) {
	var result = ajlisp.evaluateText('global');
	
	test.equal(result, global);
	
	test.done();
}

exports['Invoke Require'] = function(test) {
	var result = ajlisp.evaluateText('(.require global "net")');
    var net = require('net');
	
	test.equal(result, net);
	
	test.done();
}

exports['Global in Environment'] = function(test) {
	test.equal(ajlisp.environment.global, global);
	
	test.done();
}

{'fraction_non_alphanumeric': 0.18665091553455404, 'fraction_numerical': 0.002362669816893089, 'mean_word_length': 4.841379310344828, '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': '6497215', 'n_tokens_mistral': 616, 'n_tokens_neox': 556, 'n_words': 122}