package ppx_pbt

  1. Overview
  2. Docs
PPX Rewriter for property based testing

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_pbt-v0.1.0.tar.gz
md5=627584e9f25d016e75ece04bde5bcfa0
sha512=18e3ab5fd0ac5b6b24d24f85dba38acb4f43254fc23da24a5ec58281e91bb6b92332c8601039dcbbb66dfcc36a20e06e84aa61c856cfd9d6f7cad21ab0177681

doc/ppx_pbt.pbt/Pbt/Properties/index.html

Module Pbt.Properties

val commutative : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

commutative op x y test commutativity law

val associative : ('a -> 'a -> 'a) -> 'a -> 'a -> 'a -> bool

associative f x y z test associativity law

val neutral_left : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

neutral_left f elt x test if elt is neutral on left

val neutral_right : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

neutral_right f elt x test if elt is neutral on right

val neutrals : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

neutrals f elt x test if elt is neutral on both side

val capped_left : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

capped_left f cap x test if the function stays capped when the left argument is capped.

val capped_right : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

capped_right f cap x test if the function stays capped when the right argument is capped.

val capped : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

capped_right f cap x test if the function stays capped when the right or left argument is capped.

val eq_res : ('a -> 'a -> 'a) -> ('a -> 'a -> 'a) -> 'a -> 'a -> bool

eq_res f oracle x y test if the result between f and the oracle are equals

val absorb_left : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

absorb_left f absorb x test if the function returns x when the left argument is absorb.

val absorb_right : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

absorb_right f absorb x test if the function returns x when the right argument is absorb.

val absorbs : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

absorb_right f absorb x test if the function returns x when the right or left argument is absorb.

val floored_left : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

floored_left f floor x y test if the function stays floored when the left argument is floored.

val floored_right : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

floored_right f floor x y test if the function stays floored when the right argument is floored.

val floored : ('a -> 'a -> 'a) -> 'a -> 'a -> bool

floored_right f floor x y test if the function stays floored when the right or left argument is floored.

OCaml

Innovation. Community. Security.