Skip to content

Scenarios for table with constraints randomly fail #4

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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