<commit_before>import * as jsc from "../lib/jsverify.js";

describe("basic jsverify usage", () => {
  jsc.property("(b && b) === b", jsc.bool, b => (b && b) === b);

  jsc.property("boolean fn thrice", jsc.fn(jsc.bool), jsc.bool, (f, b) =>
    f(f(f(b))) === f(b)
  );
});<commit_msg>Add test case that would fail before #204<commit_after>import * as jsc from "../lib/jsverify.js";

describe("basic jsverify usage", () => {
  jsc.property("(b && b) === b", jsc.bool, b => (b && b) === b);

  jsc.property("boolean fn thrice", jsc.fn(jsc.bool), jsc.bool, (f, b) =>
    f(f(f(b))) === f(b)
  );
});

describe("fails before #204", () => {
  it('define only test size', () => {
    const property = jsc.forall(jsc.nat, n => n >= 0);
    jsc.assert(property, { size: 200 });
  });
});
{'fraction_non_alphanumeric': 0.2605905006418485, 'fraction_numerical': 0.012836970474967908, 'mean_word_length': 3.508670520231214, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '6770886', 'n_tokens_mistral': 321, 'n_tokens_neox': 307, 'n_words': 73}