<commit_before>'use strict'

var test = require('tape')
var tickId = require('./')

var seen = [tickId()]

test('initial value', function (t) {
  t.equal(seen[0], 1)
  t.end()
})

test('serial ticks', function (t) {
  testNext(t)
  process.nextTick(function () {
    testNext(t)
    process.nextTick(function () {
      testNext(t)
      process.nextTick(function () {
        testNext(t)
        t.end()
      })
    })
  })
})

test('paralel ticks', function (t) {
  t.plan(6)
  testNext(t)<commit_msg>Fix tests for Node.js 4<commit_after>'use strict'

var test = require('tape')
var tickId = require('./')

var seen = [tickId()]

test('initial value', function (t) {
  t.equal(seen[0], 1)
  t.end()
})

test('serial ticks', function (t) {
  process.nextTick(function () {
    testNext(t)
    process.nextTick(function () {
      testNext(t)
      process.nextTick(function () {
        testNext(t)
        process.nextTick(function () {
          testNext(t)
          t.end()
        })
      })
    })
  })
})

test('paralel ticks', function (t) {
  t.plan(6)
  testNext(t)
{'fraction_non_alphanumeric': 0.17996289424860853, 'fraction_numerical': 0.006493506493506494, 'mean_word_length': 2.7335640138408306, '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': '3410890', 'n_tokens_mistral': 399, 'n_tokens_neox': 392, 'n_words': 76}