<commit_before>import Kasen from "../src/kasen";
import KasenArray from "../src/collection/array";
import KasenObject from "../src/collection/object";

describe("Kasen", () => {
  test("ok", () => {
    expect(Kasen([])).toBeInstanceOf(KasenArray);
    expect(Kasen({})).toBeInstanceOf(KasenObject);
  });

  test("error", () => {
    expect(() => Kasen()).toThrow(TypeError);
    expect(() => Kasen(null)).toThrow(TypeError);
  });

  describe("copy()", () => {
    test("error", () => {
      expect(() => Kasen.copy()).toThrow(TypeError);
      expect(() => Kasen.copy(null)).toThrow(TypeError);
    });
  });

  describe("map()", () => {
    test("error", () => {});
  });

  describe("pluck()", () => {
    test("error", () => {});
  });

  describe("filter()", () => {
    test("error", () => {});
  });

  describe("filterNot()", () => {
    test("error", () => {});<commit_msg>Add tests up to filterNot()<commit_after>import Kasen from "../src/kasen";
import KasenArray from "../src/collection/array";
import KasenObject from "../src/collection/object";

describe("Kasen", () => {
  test("ok", () => {
    expect(Kasen([])).toBeInstanceOf(KasenArray);
    expect(Kasen({})).toBeInstanceOf(KasenObject);
  });

  test("error", () => {
    expect(() => Kasen()).toThrow(TypeError);
    expect(() => Kasen(null)).toThrow(TypeError);
  });

  describe("copy()", () => {
    test("error", () => {
      expect(() => Kasen.copy()).toThrow(TypeError);
      expect(() => Kasen.copy(null)).toThrow(TypeError);
    });
  });

  describe("map()", () => {
    test("error", () => {
      expect(() => Kasen([]).map()).toThrow(TypeError);
      expect(() => Kasen([]).map(null)).toThrow(TypeError);
      expect(() => Kasen({}).map()).toThrow(TypeError);
      expect(() => Kasen({}).map(null)).toThrow(TypeError);
      expect(() => Kasen.map()).toThrow(TypeError);
      expect(() => Kasen.map(null)).toThrow(TypeError);
      expect(() => Kasen.map([])).toThrow(TypeError);
      expect(() => Kasen.map([], null)).toThrow(TypeError);
      expect(() => Kasen.map({})).toThrow(TypeError);
      expect(() => Kasen.map({}, null)).toThrow(TypeError);
    });
  });

  describe("pluck()", () => {
    test("error", () => {
      expect(() => Kasen([]).pluck()).toThrow(TypeError);
      expect(() => Kasen([]).pluck(null)).toThrow(TypeError);
      expect(() => Kasen({}).pluck()).toThrow(TypeError);
      expect(() => Kasen({}).pluck(null)).toThrow(TypeError);
      expect(() => Kasen.pluck()).toThrow(TypeError);
      expect(() => Kasen.pluck(null)).toThrow(TypeError);
      expect(() => Kasen.pluck([])).toThrow(TypeError);
      expect(() => Kasen.pluck([], null)).toThrow(TypeError);
      expect(() => Kasen.pluck({})).toThrow(TypeError);
      expect(() => Kasen.pluck({}, null)).toThrow(TypeError);
    });
  });

  describe("filter()", () => {
    test("error", () => {
      expect(() => Kasen([]).filter(null)).toThrow(TypeError);
      expect(() => Kasen({}).filter(null)).toThrow(TypeError);
      expect(() => Kasen.filter()).toThrow(TypeError);
      expect(() => Kasen.filter(null)).toThrow(TypeError);
      expect(() => Kasen.filter([], null)).toThrow(TypeError);
      expect(() => Kasen.filter({}, null)).toThrow(TypeError);
    });
  });

  describe("filterNot()", () => {
    test("error", () => {
      expect(() => Kasen([]).filterNot()).toThrow(TypeError);
      expect(() => Kasen([]).filterNot(null)).toThrow(TypeError);
      expect(() => Kasen({}).filterNot()).toThrow(TypeError);
      expect(() => Kasen({}).filterNot(null)).toThrow(TypeError);
      expect(() => Kasen.filterNot()).toThrow(TypeError);
      expect(() => Kasen.filterNot(null)).toThrow(TypeError);
      expect(() => Kasen.filterNot([])).toThrow(TypeError);
      expect(() => Kasen.filterNot([], null)).toThrow(TypeError);
      expect(() => Kasen.filterNot({})).toThrow(TypeError);
      expect(() => Kasen.filterNot({}, null)).toThrow(TypeError);
    });
{'fraction_non_alphanumeric': 0.2716236722306525, 'fraction_numerical': 0.0, 'mean_word_length': 3.876695437731196, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 73, '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': '764337', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1278, 'n_words': 154}