Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Randomized Property-Based Testing Plugin for Coq

License

NotificationsYou must be signed in to change notification settings

QuickChick/QuickChick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCIproject chat

Description

Tutorial

Installation

From OPAM

# Add the Coq opam repository (if you haven't already)opam repo add coq-released https://coq.inria.fr/opam/releasedopam update# Install the coq-quickchick opam packageopam install coq-quickchick

Simple Examples

  • examples/Tutorial.v
  • examples/RedBlack
  • examples/stlc
  • examples/ifc-basic

Runningmake tests in the top-level QuickChick folder will check and execute all of these.If successful, you should see "success" at the end.

Documentation

The public API of QuickChick is summarized inQuickChickInterface.v.

Top-level Commands

  • QuickCheck c
  • Sample g
  • Derive Arbitrary for c
  • Derive Show for c
  • Derive ArbitrarySizedSuchThat for (fun x => p)
  • Derive DecOpt for p
  • Derive EnumSizedSuchThat for (fun x => p)
  • Derive ArbitrarySizedSuchThat for (fun x => let (x1,x2...) := x in p)
  • QuickCheckWith args c
  • MutateCheck c p
  • MutateCheckWith args c p
  • MutateCheckMany c ps
  • MutateCheckManyWith args c ps

More resources

Here is some more reading material:


Developer's corner

Build dependencies

Dependencies are listed incoq-quickchick.opam.

# To get the dependencies, add the Coq opam repository if you haven't alreadyopam repo add coq-released https://coq.inria.fr/opam/releasedopam updateopam install . --deps-only

Build

dune build

Run tests

dune runtest

Run extra tests for quickChick tool

dune install coq-quickchick  # Makes QuickChick available globallydune build @cram

[8]ページ先頭

©2009-2025 Movatter.jp