Skip to content

hamming: Update expected errors in canonical data #812

Closed
@Insti

Description

@Insti

From: https://github.com/exercism/x-common#test-data-format-canonical-datajson

if an error is expected (because the input is invalid, or any other reason), the value at "expected" should be an object containing exactly one property, "error", whose value is a string.
The string should explain why the error would occur.

But the hamming canonical data has an expected value of -1

Todo:

Update https://github.com/exercism/x-common/blob/master/exercises/hamming/canonical-data.json to use error objects for the expected value in the error cases:
e.g. "expected" : { "error": "some helpful message" }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions