Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.176.0/testing/fast_check_example.ts";

Tests that run the fast-check property-based testing library in the Deno runtime.

See: https://github.com/dubzzz/fast-check

This file contains all the 'simple' examples from the fast-check repo (001-simple folder) using Deno.test for the test functions and assertions from the Deno standard library. Missing type annotations were also added to the original fast-check examples.

Since the nested testing API is used, the tests need to be run with the unstable flag as indicated in the command:

$ deno test --unstable ./testing/fast_check_example.ts

Variables

********************* decomposePrime() ***********************************