summaryrefslogtreecommitdiff
path: root/go/gigasecond/cases_test.go
blob: 520101b721bc6171444db8a4f179383f9692d080 (plain)
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
package gigasecond

// Source: exercism/x-common
// Commit: 1e9e232 Merge pull request #45 from soniakeys/gigasecond-tests

// Add one gigasecond to the input.
var addCases = []struct {
	in   string
	want string
}{
	{
		"2011-04-25",
		"2043-01-01T01:46:40",
	},
	{
		"1977-06-13",
		"2009-02-19T01:46:40",
	},
	{
		"1959-07-19",
		"1991-03-27T01:46:40",
	},
	{
		"2015-01-24T22:00:00",
		"2046-10-02T23:46:40",
	},
	{
		"2015-01-24T23:59:59",
		"2046-10-03T01:46:39",
	},
}