forked from exercism/go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcases_test.go
More file actions
35 lines (32 loc) · 687 Bytes
/
cases_test.go
File metadata and controls
35 lines (32 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package eliudseggs
// This is an auto-generated file. Do not change it manually. Run the generator to update the file.
// See https://github.com/exercism/go#synchronizing-tests-and-instructions
// Source: exercism/problem-specifications
// Commit: 1a96480 Add `eliuds-eggs` exercise (#2382)
type testCase struct {
description string
input int
expected int
}
var testCases = []testCase{
{
description: "0 eggs",
input: 0,
expected: 0,
},
{
description: "1 egg",
input: 16,
expected: 1,
},
{
description: "4 eggs",
input: 89,
expected: 4,
},
{
description: "13 eggs",
input: 2000000000,
expected: 13,
},
}