<commit_before>var assert = require('assert');
var deeq = require('../');

describe('deeq', () => {
  context('Set', () => {
    it('equals', () => {
      assert(deeq(new Set(), new Set()));
      assert(deeq(new Set([1]), new Set([1])));
      assert(deeq(new Set([1, 2]), new Set([1, 2])));
    });
    it('different size', () => {
      assert(!deeq(new Set([1]), new Set()));
    });
    it('different value', () => {
      assert(!deeq(new Set([1]), new Set([2])));
    });
    it('not strict', () => {
      assert(deeq(new Set([1]), new Set(['1'])));
    });
    it('strict', () => {
      assert(!deeq(new Set([1]), new Set(['1']), true));
    });
  });

  context('Map', () => {
    it('equals', () => {
      assert(deeq(new Map(), new Map()));
      assert(deeq(new Map([['a', 1]]), new Map([['a', 1]])));
      assert(deeq(new Map([['a', 1], ['b', 2]]), new Map([['a', 1], ['b', 2]])));
    });
    it('different size', () => {
      assert(!deeq(new Map([['a', 1]]), new Map()));
    });
    it('different value', () => {
      assert(!deeq(new Map([['a', 1]]), new Map([['a', 2]])));
    });
    it('different key', () => {
      assert(!deeq(new Map([['a', 1]]), new Map([['b', 1]])));
    });
    it('not strict', () => {
      assert(deeq(new Map([['a', 1]]), new Map([['a', '1']])));
    });
    it('strict', () => {
      assert(!deeq(new Map([['a', 1]]), new Map([['a', '1']]), true));
    });
  });

  context('Primitives', () => {
    it('same', () => {
      assert(deeq(1, 1));
      assert(deeq('a', 'a'));
      assert(deeq(null, null));
      assert(deeq(undefined, undefined));
      var s = Symbol();
      assert(deeq(s, s));<commit_msg>test(deeq): add tests for different order<commit_after>var assert = require('assert');
var deeq = require('../');

describe('deeq', () => {
  context('Set', () => {
    it('equals', () => {
      assert(deeq(new Set(), new Set()));
      assert(deeq(new Set([1]), new Set([1])));
      assert(deeq(new Set([1, 2]), new Set([1, 2])));
    });
    it('different size', () => {
      assert(!deeq(new Set([1]), new Set()));
    });
    it('different value', () => {
      assert(!deeq(new Set([1]), new Set([2])));
    });
    it('different order', () => {
      assert(!deeq(new Set([1, 2]), new Set([2, 1])));
    });
    it('not strict', () => {
      assert(deeq(new Set([1]), new Set(['1'])));
    });
    it('strict', () => {
      assert(!deeq(new Set([1]), new Set(['1']), true));
    });
  });

  context('Map', () => {
    it('equals', () => {
      assert(deeq(new Map(), new Map()));
      assert(deeq(new Map([['a', 1]]), new Map([['a', 1]])));
      assert(deeq(new Map([['a', 1], ['b', 2]]), new Map([['a', 1], ['b', 2]])));
    });
    it('different size', () => {
      assert(!deeq(new Map([['a', 1]]), new Map()));
    });
    it('different value', () => {
      assert(!deeq(new Map([['a', 1]]), new Map([['a', 2]])));
    });
    it('different key', () => {
      assert(!deeq(new Map([['a', 1]]), new Map([['b', 1]])));
    });
    it('different order', () => {
      assert(!deeq(new Map([['a', 1], ['b', 2]]), new Map([['b', 2], ['a', 1]])));
    });
    it('not strict', () => {
      assert(deeq(new Map([['a', 1]]), new Map([['a', '1']])));
    });
    it('strict', () => {
      assert(!deeq(new Map([['a', 1]]), new Map([['a', '1']]), true));
    });
  });

  context('Primitives', () => {
    it('same', () => {
      assert(deeq(1, 1));
      assert(deeq('a', 'a'));
      assert(deeq(null, null));
      assert(deeq(undefined, undefined));
      var s = Symbol();
      assert(deeq(s, s));
{'fraction_non_alphanumeric': 0.3198549916341327, 'fraction_numerical': 0.018962632459564976, 'mean_word_length': 2.9767184035476717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, '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': '3162574', 'n_tokens_mistral': 1351, 'n_tokens_neox': 1292, 'n_words': 270}