Skip to content

Random testing in Lambda/TestGen #328

@aqjune-aws

Description

@aqjune-aws

The random LExpr generator in Strata/DL/Lambda/TestGen.lean fails sometimes. Specifically, it is this test:

    let P : LExpr TrivialParams.mono → Prop := fun t => HasType example_lctx example_ctx t example_ty
    let t ← Gen.runUntil (.some 1) (ArbitrarySizedSuchThat.arbitrarySizedST P 5) 5
    IO.println s!"Generated {t}"

The reason must be identified. #327 makes the test successful by fixing the random seed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions