<commit_before>define(
    [
        'graphicore',
        'graphicore/errors',
        'graphicore/tools/misc/transform',
        'graphicore/tools/pens/BasePen',
        'graphicore/tools/pens/testPens'
    ],
    function(graphicore, errors, transform, BasePen, testPens)
{
    /*shortcuts*/
    var TestPen = testPens.BaseTestPen,
    /**
     * a little helper to round the results of the testpen. This is good
     * to overcome floating point rounding errors
     */
        roundRecursive = function(item, factor) {
        //currying the factor away
        var round = graphicore.round,
            roundRecursive = function(item) {
            if(item instanceof Array)
                return item.map(roundRecursive);
            if(typeof item === 'number')
                return round(item, factor);
            return item;
        }
        return roundRecursive(item);
    };
    
    doh.register("graphicore.pens.BasePen", [
    function Test_BasePen_Errors() {
        var pen = new BasePen();
        
        doh.assertError(
            errors.NotImplemented,
            pen, 'moveTo',<commit_msg>Test for the inherited instance(s) of BasePen<commit_after>define(
    [
        'graphicore',
        'graphicore/errors',
        'graphicore/tools/misc/transform',
        'graphicore/tools/pens/AbstractPen',
        'graphicore/tools/pens/BasePen',
        'graphicore/tools/pens/testPens'
    ],
    function(graphicore, errors, transform, AbstractPen, BasePen, testPens)
{
    /*shortcuts*/
    var TestPen = testPens.BaseTestPen,
    /**
     * a little helper to round the results of the testpen. This is good
     * to overcome floating point rounding errors
     */
        roundRecursive = function(item, factor) {
        //currying the factor away
        var round = graphicore.round,
            roundRecursive = function(item) {
            if(item instanceof Array)
                return item.map(roundRecursive);
            if(typeof item === 'number')
                return round(item, factor);
            return item;
        }
        return roundRecursive(item);
    };
    
    doh.register("graphicore.pens.BasePen", [
    function Test_BasePen_inheritance() {
        var pen = new BasePen();
        doh.assertTrue(pen instanceof AbstractPen);
    },
    function Test_BasePen_Errors() {
        var pen = new BasePen();
        
        doh.assertError(
            errors.NotImplemented,
            pen, 'moveTo',
{'fraction_non_alphanumeric': 0.1012965964343598, 'fraction_numerical': 0.0, 'mean_word_length': 2.0220318237454102, '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': '7458547', 'n_tokens_mistral': 715, 'n_tokens_neox': 705, 'n_words': 160}