<commit_before>new Test().add([
        testZzz_value,
        testZzz_isNumber,
        testZzz_isInteger,
    ]).run(function(err, test) {
        if (1) {
            err || test.worker(function(err, test) {
                if (!err && typeof Zzz_ !== "undefined") {
                    var name = Test.swap(Zzz, Zzz_);

                    new Test(test).run(function(err, test) {
                        Test.undo(name);
                    });
                }
            });
        }
    });

function testZzz_value(next) {

    var result = new Zzz(123.4).value();

    if (result !== 123.4) {
        console.log("testZzz_value ng");
        next && next.miss(); // see Task.js
    } else {
        console.log("testZzz_value ok");
        next && next.pass(); // see Task.js
    }
}

function testZzz_isNumber(next) {

    var result = [
            new Zzz(123.4).isNumber(),  // true
            new Zzz(123.0).isNumber()   // true
        ];

    if (/false/.test(result.join())) {
        console.log("testZzz_isNumber ng");
        next && next.miss();
    } else {
        console.log("testZzz_isNumber ok");
        next && next.pass();
    }
}

function testZzz_isInteger(next) {

    var result = [
           !new Zzz(123.4).isInteger(), // !false -> true
            new Zzz(123.0).isInteger()  // true
        ];

    if (/false/.test(result.join())) {
        console.log("testZzz_isInteger ng");
        next && next.miss();
    } else {
        console.log("testZzz_isInteger ok");
        next && next.pass();
    }
}
<commit_msg>improve test case<commit_after>new Test().add([
        testZzz_value,
        testZzz_isNumber,
        testZzz_isInteger,
    ]).run(function(err, test) {
        if (1) {
            err || test.worker(function(err, test) {
                if (!err && typeof Zzz_ !== "undefined") {
                    var name = Test.swap(Zzz, Zzz_);

                    new Test(test).run(function(err, test) {
                        Test.undo(name);
                    });
                }
            });
        }
    });

function testZzz_value(next) {

    var result = new Zzz(123.4).value();

    if (result === 123.4) {
        console.log("testZzz_value ok");
        next && next.pass();
    } else {
        console.error("testZzz_value ng");
        next && next.miss();
    }
}

function testZzz_isNumber(next) {

    var result = [
            new Zzz(123.4).isNumber(),  // true
            new Zzz(123.0).isNumber()   // true
        ];

    if (!/false/.test(result.join())) {
        console.log("testZzz_isNumber ok");
        next && next.pass();
    } else {
        console.error("testZzz_isNumber ng");
        next && next.miss();
    }
}

function testZzz_isInteger(next) {

    var result = [
           !new Zzz(123.4).isInteger(), // !false -> true
            new Zzz(123.0).isInteger()  // true
        ];

    if (!/false/.test(result.join())) {
        console.log("testZzz_isInteger ok");
        next && next.pass();
    } else {
        console.error("testZzz_isInteger ng");
        next && next.miss();
    }
}

{'fraction_non_alphanumeric': 0.16129032258064516, 'fraction_numerical': 0.016129032258064516, 'mean_word_length': 1.5863219349457882, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4499307', 'n_tokens_mistral': 1029, 'n_tokens_neox': 970, 'n_words': 178}