tap-fast-check
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

tap-fast-check

Property testing for Tap using fast-check

import {t, fc} from "tap-fast-check"

t.test("String.indexOf()", async (t) => {
  t.prop(
    fc.property(fc.string(), (text) => {
      return text.indexOf(text) >= 0
    }),
    "Always contains itself",
  )
})

Package Sidebar

Install

npm i tap-fast-check

Weekly Downloads

2

Version

0.4.0

License

MIT

Unpacked Size

4.9 kB

Total Files

7

Last publish

Collaborators

  • shfrmn