Skip to content

Scenarios for table with constraints randomly fail #4

@HenrikPoulsen

Description

@HenrikPoulsen

I am trying to use this package for some tables that have constraints.
I will randomly get constraint violations during LoadScenario().

This is because yaml.Unmarshal() does not preserve order by default. So it ends up returning the data in a different order than what is specified in the scenario. This can be resolved by using yaml.MapSlice which would preserve the order.

I don't know what the status of this project is. If you're open for accepting PRs I wouldn't mind spending some time on fixing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions