<commit_before>var path = require('path');
var getFile = require('../../get-file');
var run = require('../../run-solution');

exports.problem = getFile(path.join(__dirname, 'problem.md'));

exports.solution = getFile(path.join(__dirname, 'solution.md'));

exports.verify = function (args, cb) {
  run(args[0], function (err, result) {
    var expected = "[ 'tomato sauce', 'cheese', 'pepperoni' ]\n";
    if (result.replace('"', "'") === expected) cb(true);
    else cb(false);
  });
};<commit_msg>Fix arrays verify step: do not fail if empty string or boolean passed in<commit_after>var path = require('path');
var getFile = require('../../get-file');
var run = require('../../run-solution');

exports.problem = getFile(path.join(__dirname, 'problem.md'));

exports.solution = getFile(path.join(__dirname, 'solution.md'));

exports.verify = function (args, cb) {
  run(args[0], function (err, result) {
    var expected = "[ 'tomato sauce', 'cheese', 'pepperoni' ]\n";
    if (result && result.replace('"', "'") === expected) cb(true);
    else cb(false);
  });
};
{'fraction_non_alphanumeric': 0.21690140845070421, 'fraction_numerical': 0.0018779342723004694, 'mean_word_length': 4.383838383838384, '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': '481969', 'n_tokens_mistral': 351, 'n_tokens_neox': 338, 'n_words': 86}