exercism

Exercism solutions.
git clone git://code.dwrz.net/exercism
Log | Files | Refs

cases_test.go (747B)


      1 package gigasecond
      2 
      3 // Source: exercism/problem-specifications
      4 // Commit: 5506bac gigasecond: Apply new "input" policy
      5 // Problem Specifications Version: 1.1.0
      6 
      7 // Add one gigasecond to the input.
      8 var addCases = []struct {
      9 	description string
     10 	in          string
     11 	want        string
     12 }{
     13 	{
     14 		"date only specification of time",
     15 		"2011-04-25",
     16 		"2043-01-01T01:46:40",
     17 	},
     18 	{
     19 		"second test for date only specification of time",
     20 		"1977-06-13",
     21 		"2009-02-19T01:46:40",
     22 	},
     23 	{
     24 		"third test for date only specification of time",
     25 		"1959-07-19",
     26 		"1991-03-27T01:46:40",
     27 	},
     28 	{
     29 		"full time specified",
     30 		"2015-01-24T22:00:00",
     31 		"2046-10-02T23:46:40",
     32 	},
     33 	{
     34 		"full time with day roll-over",
     35 		"2015-01-24T23:59:59",
     36 		"2046-10-03T01:46:39",
     37 	},
     38 }