Skip to content

Added test_is_valid_can_be_called_repeatedly() to the test set.#136

Merged
kytrinyx merged 1 commit intoexercism:masterfrom
mmakaay:master
Oct 21, 2014
Merged

Added test_is_valid_can_be_called_repeatedly() to the test set.#136
kytrinyx merged 1 commit intoexercism:masterfrom
mmakaay:master

Conversation

@mmakaay
Copy link
Copy Markdown

@mmakaay mmakaay commented Oct 21, 2014

This test checks if is_valid() can be called multiple times.
Many implementations failed for this, because a list of digits
that was created at init time, got mangled by the Luhn
transformation, causing the second call to is_valid() to
work with different input data.

This test checks if is_valid() can be called multiple times.
Many implementations failed for this, because a list of digits
that was created at init time, got mangled by the Luhn
transformation, causing the second call to is_valid() to
work with different input data.
@kytrinyx
Copy link
Copy Markdown
Member

Mutability is hard :) Thank you.

kytrinyx added a commit that referenced this pull request Oct 21, 2014
Added test_is_valid_can_be_called_repeatedly() to the test set.
@kytrinyx kytrinyx merged commit e008bf9 into exercism:master Oct 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants