Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

SubSubtable are not always in same order #8

@koyeung

Description

@koyeung

Tested in tag 1.0.4.

Adding the test case to rust/src/main.rs:

    #[case::subsubtable(
        indoc ! {r#"
    [project]
    [tool.coverage.paths]
    a = 1
    [tool.coverage.report]
    a = 2
    [tool.coverage.run]
    a = 3
    "#},
        indoc ! {r#"
    [project]
    classifiers = [
      "Programming Language :: Python :: 3 :: Only",
      "Programming Language :: Python :: 3.8",
    ]
    [tool.coverage.paths]
    a = 1
    [tool.coverage.report]
    a = 2
    [tool.coverage.run]
    a = 3
    "#},
        2,
        true,
        (3, 8)
    )]

Expected Result:
"tool.coverage.paths", "tool.coverage.report" and "tool.coverage.run" are sorted by the table names.

Actual Result:
The order are quite random. cargo test may pass/fail occasionally.

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