<commit_before>path = require 'path'
vows = require 'vows'
assert = require 'assert'
coffeelint = require path.join('..', 'lib', 'coffeelint')


vows.describe('coffeelint').addBatch({

    "CoffeeLint's version number" :

        topic : coffeelint.VERSION

        'exists' : (version) ->
            assert.isString(version)

    "CoffeeLint's errors" :

        topic : coffeelint.lint """
            a = () ->\t
                1234
            """

        'are sorted by line number' : (errors) -><commit_msg>Update coffeelint test to fix bug where the test was getting the output from the 1.5.0+ version of coffeescript<commit_after>path = require 'path'
vows = require 'vows'
assert = require 'assert'
coffeelint = require path.join('..', 'lib', 'coffeelint')


vows.describe('coffeelint').addBatch({

    "CoffeeLint's version number" :

        topic : coffeelint.VERSION

        'exists' : (version) ->
            assert.isString(version)

    "CoffeeLint's errors" :

        topic : () -> coffeelint.lint """
            a = () ->\t
                1234
            """

        'are sorted by line number' : (errors) ->
{'fraction_non_alphanumeric': 0.1382042253521127, 'fraction_numerical': 0.009683098591549295, 'mean_word_length': 2.2485714285714287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '6019680', 'n_tokens_mistral': 384, 'n_tokens_neox': 342, 'n_words': 90}