Skip to content

Commit fd0be76

Browse files
gigasecond: add immutable test (#1743)
* Add immutable test * Format with prettier
1 parent 867d594 commit fd0be76

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

exercises/gigasecond/canonical-data.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,21 @@
5959
"moment": "2015-01-24T23:59:59"
6060
},
6161
"expected": "2046-10-03T01:46:39"
62+
},
63+
{
64+
"uuid": "fcec307c-7529-49ab-b0fe-20309197618a",
65+
"description": "does not mutate the input",
66+
"comments": [
67+
"This test case is for languages with a mutable date or datetime ",
68+
"datastructure. After running add(moment), moment should remain ",
69+
"the same."
70+
],
71+
"scenarios": ["immutable"],
72+
"property": "isEqual",
73+
"input": {
74+
"moment": "2015-01-24T23:59:59"
75+
},
76+
"expected": "moment === moment"
6277
}
6378
]
6479
}

0 commit comments

Comments
 (0)