Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions exercises/sum-of-multiples/sum_of_multiples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ var varTests = []struct {
{[]int{43, 47}, 10000, 2203160},
{[]int{5, 10, 12}, 10000, 13331672},
{[]int{1, 1}, 10000, 49995000},
// Note: The following test case deviates from the README.
// The README specifies some rather odd defaults, whereas
// this has the more logical approach of not implementing any
// defaults, which causes the resulting sum to be zero.
// See discussion in:
// https://github.com/exercism/xgo/issues/256 and
// https://github.com/exercism/x-common/issues/198
{[]int{}, 10000, 0},
}

Expand Down