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

Generators.Spec

Description

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

Synopsis

Documentation

propTermSrcSpanTestTree Source #

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

propListElementErrorLocationTestTree Source #

Test that parser errors for list element type mismatches point to the correct location. This uses the exact example from the issue report.

propTypeNameTypoErrorLocationTestTree Source #

Test that parser errors for typos in type names point to the correct location. This tests the case where "boot" is used instead of "bool".

propMissingClosingParenTestTree Source #

Test that parser errors for missing closing parenthesis are clear.

propMissingClosingBracketTestTree Source #

Test that parser errors for missing closing bracket are clear.

propMissingBuiltinOperandTestTree Source #

Test that parser errors for missing builtin operand are clear.

propMissingConOperandsTestTree Source #

Test that parser errors for missing con operands are clear.

propInvalidKeywordTestTree Source #

Test that parser errors for invalid keywords are clear.

propBracketMismatchTestTree Source #

Test that parser errors for bracket mismatches are clear.

testParseErrorGoldenStringStringTextTestTree Source #

Helper function to test parser error messages using golden files. Verifies exact error message output against a golden file, ensuring error quality doesn't regress.