<commit_before>#!/usr/bin/env node

var mapnik = require('mapnik');
var assert = require('assert');
var path = require('path');
var fs = require('fs');

/* MAP */

// Test mapnik.Map object creation
var Map = mapnik.Map;

var map1 = new Map(256, 256);

assert.ok(map1 instanceof Map);

var map = new mapnik.Map(600, 400);

assert.ok(map instanceof mapnik.Map);
assert.throws(function() {new mapnik.Map('foo')});<commit_msg>test version's match for the node process and the node version node-mapnik was compiled against<commit_after>#!/usr/bin/env node

var mapnik = require('mapnik');
var assert = require('assert');
var path = require('path');
var fs = require('fs');

/* settings */

assert.ok(mapnik.settings)
assert.ok(mapnik.settings.paths)
assert.ok(mapnik.settings.paths.fonts.length)
assert.ok(mapnik.settings.paths.input_plugins.length)


/* ABI compatibility */

// be strict/exact
assert.ok(mapnik.node_version === process.version,'The node version "' + process.version + '" does not match the node version that node-mapnik was compiled against: "' + mapnik.node_version + '"');


/* MAP */

// Test mapnik.Map object creation
var Map = mapnik.Map;

var map1 = new Map(256, 256);

assert.ok(map1 instanceof Map);

var map = new mapnik.Map(600, 400);

assert.ok(map instanceof mapnik.Map);
assert.throws(function() {new mapnik.Map('foo')});
{'fraction_non_alphanumeric': 0.15851851851851853, 'fraction_numerical': 0.02074074074074074, 'mean_word_length': 4.773504273504273, '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': '6279758', 'n_tokens_mistral': 464, 'n_tokens_neox': 435, 'n_words': 121}