Skip to content

accumulate: should tests enforce not mutating the input? #628

@petertseng

Description

@petertseng

As can be seen in current implementation of https://github.com/exercism/rust/blob/master/exercises/accumulate/example.rs , an implementation that mutates the input is accepted. this behaviour is unlike traditional map. Should tests enforce that the input is not mutated?

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