plutus-core-1.45.0.0: Language library for Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

Generators

Description

UPLC property tests (pretty-printing/parsing and binary encoding/decoding).

Synopsis

Documentation

newtype TextualProgram a Source #

A Program which we compare using textual equality of names rather than alpha-equivalence.

Instances

Instances details
Show a ⇒ Show (TextualProgram a) Source # 
Instance details

Defined in Generators

Eq a ⇒ Eq (TextualProgram a) Source # 
Instance details

Defined in Generators

compareTerm ∷ (GEq uni, Closed uni, uni `Everywhere` Eq, Eq fun, Eq a) ⇒ Term Name uni fun a → Term Name uni fun a → Bool Source #

compareProgram ∷ (GEq uni, Closed uni, uni `Everywhere` Eq, Eq fun, Eq a) ⇒ Program Name uni fun a → Program Name uni fun a → Bool Source #

genTerm ∷ ∀ fun. (Bounded fun, Enum fun) ⇒ AstGen (Term Name DefaultUni fun ()) Source #

genProgram ∷ ∀ fun. (Bounded fun, Enum fun) ⇒ AstGen (Program Name DefaultUni fun ()) Source #

propTermSrcSpanTestTree Source #

The SrcSpan of a parsed Term should not including trailing whitespaces.