Sha256: 5face63e0b29c43dbe9574a42ad6ee26ccf0895064b96efe0cbb8c67aca6fc3b

Contents?: true

Size: 676 Bytes

Versions: 116

Compression:

Stored size: 676 Bytes

Contents

package lsproduct

// Source: exercism/x-common
// Commit: e79b832 largest-series-product: Fix canonical-data.json formatting
// x-common version: 1.0.0

var tests = []struct {
	digits  string
	span    int
	product int64
	ok      bool
}{
	{"29", 2, 18, true},
	{"0123456789", 2, 72, true},
	{"576802143", 2, 48, true},
	{"0123456789", 3, 504, true},
	{"1027839564", 3, 270, true},
	{"0123456789", 5, 15120, true},
	{"73167176531330624919225119674426574742355349194934", 6, 23520, true},
	{"0000", 2, 0, true},
	{"99099", 3, 0, true},
	{"123", 4, -1, false},
	{"", 0, 1, true},
	{"123", 0, 1, true},
	{"", 1, -1, false},
	{"1234a5", 2, -1, false},
	{"12345", -1, -1, false},
}

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
trackler-2.1.0.18 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.17 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.16 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.15 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.14 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.13 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.12 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.11 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.10 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.9 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.8 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.7 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.6 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.5 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.4 tracks/go/exercises/largest-series-product/cases_test.go
trackler-2.1.0.3 tracks/go/exercises/largest-series-product/cases_test.go