Sha256: 16fcedb071ceec1bd7d2e22b65f9b03dfc5a3161ecf7062ff8019c65b846ce75

Contents?: true

Size: 1.45 KB

Versions: 117

Compression:

Stored size: 1.45 KB

Contents

{
   "#": [
      "The basic test is to add one gigasecond to a few ordinary dates.",
      "Most test programs currently check only the date and ignore the time.",
      "For languages with a native date-time type though, expected times",
      "here show the correct seconds, ignoring leap seconds.",
      "The date and time formats here are per",
      "http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15.",
      "",
      "Finally, as a demonstration but not really a test,",
      "some languages demonstrate the add function by inviting the",
      "solver to include their birthdate in either the solution code",
      "or test program.  The test program then shows or tests their",
      "gigasecond anniversay."
   ],
   "add": {
      "description": [
         "Add one gigasecond to the input."
      ],
      "cases": [
         {
            "input": "2011-04-25",
            "expected": "2043-01-01T01:46:40"
         },
         {
            "input": "1977-06-13",
            "expected": "2009-02-19T01:46:40"
         },
         {
            "input": "1959-07-19",
            "expected": "1991-03-27T01:46:40"
         },
         {
            "#": "full time specified",
            "input": "2015-01-24T22:00:00",
            "expected": "2046-10-02T23:46:40"
         },
         {
            "#": "full time with day roll-over",
            "input": "2015-01-24T23:59:59",
            "expected": "2046-10-03T01:46:39"
         }
      ]
   }
}

Version data entries

117 entries across 117 versions & 1 rubygems

Version Path
trackler-2.0.8.16 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.15 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.14 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.13 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.12 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.11 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.10 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.9 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.8 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.7 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.6 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.5 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.4 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.3 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.2 common/exercises/gigasecond/canonical-data.json
trackler-2.0.8.1 common/exercises/gigasecond/canonical-data.json
trackler-2.0.7.0 common/exercises/gigasecond/canonical-data.json
trackler-2.0.6.44 common/exercises/gigasecond/canonical-data.json
trackler-2.0.6.43 common/exercises/gigasecond/canonical-data.json
trackler-2.0.6.42 common/exercises/gigasecond/canonical-data.json