1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
From Coq Require Import Arith.
From QuickChick Require Import QuickChick Tactics.
Set Warnings "-notation-overridden".
From mathcomp Require Import ssreflect ssrfun ssrbool ssrnat eqtype seq.
Set Bullet Behavior "Strict Subproofs".
(*! Section Prop12 *)
Definition testProp1 (x : nat) := x =? 0.
Definition testProp2 (x : nat) := x =? x.
(* quickChick <filename> (-m test) -s Prop12 *)
(*!
QuickChick testProp1.
*)
(*! QuickChick testProp2. *)
(*! Section Prop3 *)(*! extends Prop12 *)
Definition testProp3 (x y : nat) := x =? y.
(*!
QuickChick testProp3.
*)
(*! Section Prop4 *)
Definition testProp4 (x y : nat) := x =? y.
(*!
QuickChick testProp4.
*)
(*! Section Mutant *)
Definition plus1 (x : nat) := (*!*) x + 1 (*! x *) (*! x + x *) .
(*! Section PropPlus *)(*! extends Mutant *)
(* quickChick <filename> -m mutate -s PropPlus *)
Definition propPlus x := x <? plus1 x.
(*!
QuickChick propPlus.
*)
|