<commit_before>import { expect } from "chai";
import * as frame from "../../src/frames";
import * as lex from "../../src/syntax/lex-pipe";
import * as parse from "../../src/syntax/parse";

import { piper } from "../../src/syntax/piper";

describe("Piper", () => {
  let out: frame.FrameArray;

  beforeEach(() => {
    out = new frame.FrameArray([]);
  });

  it("is exported", () => {
    expect(piper).to.be.ok;
  });

  it("returns nil from empty string", () => {
    expect(out.size()).to.equal(0);
    const status = piper.call("");
    expect(out.size()).to.equal(1);
    //expect(result.toString()).to.equal("()");
  });
});<commit_msg>returns empty array for empty string<commit_after>import { expect } from "chai";
import * as frame from "../../src/frames";
import * as lex from "../../src/syntax/lex-pipe";
import * as parse from "../../src/syntax/parse";

import { piper } from "../../src/syntax/piper";

describe("Piper", () => {
  it("is exported", () => {
    expect(piper).to.be.ok;
  });

  it("returns empty array for empty string", () => {
    const result = piper.call("");
    expect(result.toString()).to.equal("[]");
  });
});
{'fraction_non_alphanumeric': 0.24477351916376305, 'fraction_numerical': 0.0017421602787456446, 'mean_word_length': 3.045774647887324, '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': '2819373', 'n_tokens_mistral': 383, 'n_tokens_neox': 372, 'n_words': 87}