Skip to content

Generators inside maps #289

Open
@lbueso

Description

@lbueso

When generators are introduced inside containers like lists and tuples they work as expected:

1> proper_gen:pick({key, proper_types:nat()}).   
{ok,{key,7}}
2> proper_gen:pick([proper_types:nat()]).     
{ok,[0]}

But when a generator is introduced in a map it does not produce any value:

3> proper_gen:pick(#{key => proper_types:nat()}).
{ok,#{key =>
          {'$type',[{generator,#Fun<proper_types.79.60513951>},
                    {kind,wrapper}]}}}

I suppose this has some relation with issues #111, #118 and #238.

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