Skip to content

grade-school canonical data does not correspond to the exercise description #1623

@eparovyshnaya

Description

@eparovyshnaya

There is a discrepancy between test cases described in the canonical data and the exercise description.

Explaining the general roster query, description mentions a map structure to be returned as a result:

"Who all is enrolled in school right now?"
"Grade 1: Anna, Barb, and Charlie.
Grade 2: Alex, Peter, and Zoe.
Grade 3…"

But canonical data prescribes to only return names, like here:

{
  "description": "Student names with grades are displayed in the same sorted roster",
  "property": "roster",
  "input": {
    "students": [["Peter", 2], ["Anna", 1], ["Barb", 1], ["Zoe", 2], ["Alex", 2], ["Jim", 3], ["Charlie", 1]]
  },
  "expected": ["Anna", "Barb", "Charlie", "Alex", "Peter", "Zoe", "Jim"]
}

According to the exercise description it could be more appropriate to require map here as well:

"expected": [[1, ["Anna", "Barb", "Charlie"]], [2, ["Alex", "Peter", "Zoe"]], [3, ["Jim"]]]

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