Sha256: 34ab021f429274aa8cba4105440dc0d9cf39246f2fc287090b0b7b8028eb3216

Contents?: true

Size: 2 KB

Versions: 90

Compression:

Stored size: 2 KB

Contents

{
  "exercise": "gigasecond",
  "version": "1.1.0",
  "comments": [
    "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 anniversary."
  ],
  "cases": [
    {
      "description": "Add one gigasecond to the input.",
      "cases": [
        {
          "description": "date only specification of time",
          "property": "add",
          "input": {
            "birthdate": "2011-04-25"
          },
          "expected": "2043-01-01T01:46:40"
        },
        {
          "description": "second test for date only specification of time",
          "property": "add",
          "input": {
            "birthdate": "1977-06-13"
          },
          "expected": "2009-02-19T01:46:40"
        },
        {
          "description": "third test for date only specification of time",
          "property": "add",
          "input": {
            "birthdate": "1959-07-19"
          },
          "expected": "1991-03-27T01:46:40"
        },
        {
          "description": "full time specified",
          "property": "add",
          "input": {
            "birthdate": "2015-01-24T22:00:00"
          },
          "expected": "2046-10-02T23:46:40"
        },
        {
          "description": "full time with day roll-over",
          "property": "add",
          "input": {
            "birthdate": "2015-01-24T23:59:59"
          },
          "expected": "2046-10-03T01:46:39"
        }
      ]
    }
  ]
}

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
trackler-2.2.1.180 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.179 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.178 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.177 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.176 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.175 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.174 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.173 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.172 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.171 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.170 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.169 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.167 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.166 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.165 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.164 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.163 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.162 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.161 problem-specifications/exercises/gigasecond/canonical-data.json
trackler-2.2.1.160 problem-specifications/exercises/gigasecond/canonical-data.json