Skip to content

Commit 7019b71

Browse files
Merge properties
1 parent 8f55762 commit 7019b71

File tree

1 file changed

+68
-43
lines changed

1 file changed

+68
-43
lines changed

exercises/baffling-birthdays/canonical-data.json

Lines changed: 68 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -11,55 +11,103 @@
1111
{
1212
"description": "shared birthday",
1313
"cases": [
14+
{
15+
"uuid": "716dcc2b-8fe4-4fc9-8c48-cbe70d8e6b67",
16+
"description": "one birthdate",
17+
"property": "sharedBirthday",
18+
"input": {
19+
"birthdates": ["2000-01-01"]
20+
},
21+
"expected": false
22+
},
23+
,
1424
{
1525
"uuid": "f7b3eb26-bcfc-4c1e-a2de-af07afc33f45",
16-
"description": "same year, month, and day",
26+
"description": "two birthdates with same year, month, and day",
1727
"property": "sharedBirthday",
1828
"input": {
19-
"birthdate1": "2000-01-01",
20-
"birthdate2": "2000-01-01"
29+
"birthdates": ["2000-01-01", "2000-01-01"]
2130
},
2231
"expected": true
2332
},
2433
{
2534
"uuid": "7193409a-6e16-4bcb-b4cc-9ffe55f79b25",
26-
"description": "same year and month, but different day",
35+
"description": "two birthdates with same year and month, but different day",
2736
"property": "sharedBirthday",
2837
"input": {
29-
"birthdate1": "2012-05-09",
30-
"birthdate2": "2012-05-17"
38+
"birthdates": ["2012-05-09", "2012-05-17"]
3139
},
3240
"expected": false
3341
},
3442
{
3543
"uuid": "d04db648-121b-4b72-93e8-d7d2dced4495",
36-
"description": "same month and day, but different year",
44+
"description": "two birthdates with same month and day, but different year",
3745
"property": "sharedBirthday",
3846
"input": {
39-
"birthdate1": "1999-10-23",
40-
"birthdate2": "1988-10-23"
47+
"birthdates": ["1999-10-23", "1988-10-23"]
4148
},
4249
"expected": true
4350
},
4451
{
4552
"uuid": "3c8bd0f0-14c6-4d4c-975a-4c636bfdc233",
46-
"description": "same year, but different month and day",
53+
"description": "two birthdates with same year, but different month and day",
4754
"property": "sharedBirthday",
4855
"input": {
49-
"birthdate1": "2007-12-19",
50-
"birthdate2": "2007-04-27"
56+
"birthdates": ["2007-12-19", "2007-04-27"]
5157
},
5258
"expected": false
5359
},
5460
{
5561
"uuid": "df5daba6-0879-4480-883c-e855c99cdaa3",
56-
"description": "different year, month, and day",
62+
"description": "two birthdates with different year, month, and day",
5763
"property": "sharedBirthday",
5864
"input": {
59-
"birthdate1": "1997-08-04",
60-
"birthdate2": "1963-11-23"
65+
"birthdates": ["1997-08-04", "1963-11-23"]
6166
},
6267
"expected": false
68+
},
69+
{
70+
"uuid": "0c17b220-cbb9-4bd7-872f-373044c7b406",
71+
"description": "multiple birthdates without shared birthday",
72+
"property": "sharedBirthday",
73+
"input": {
74+
"birthdates": [
75+
"1966-07-29",
76+
"1977-02-12",
77+
"2001-12-25",
78+
"1980-11-10"
79+
]
80+
},
81+
"expected": false
82+
},
83+
{
84+
"uuid": "966d6b0b-5c0a-4b8c-bc2d-64939ada49f8",
85+
"description": "multiple birthdates with one shared birthday",
86+
"property": "sharedBirthday",
87+
"input": {
88+
"birthdates": [
89+
"1966-07-29",
90+
"1977-02-12",
91+
"2001-07-29",
92+
"1980-11-10"
93+
]
94+
},
95+
"expected": true
96+
},
97+
{
98+
"uuid": "b7937d28-403b-4500-acce-4d9fe3a9620d",
99+
"description": "multiple birthdates with more than one shared birthday",
100+
"property": "sharedBirthday",
101+
"input": {
102+
"birthdates": [
103+
"1966-07-29",
104+
"1977-02-12",
105+
"2001-12-25",
106+
"1980-07-29",
107+
"2019-02-12"
108+
]
109+
},
110+
"expected": true
63111
}
64112
]
65113
},
@@ -113,36 +161,13 @@
113161
]
114162
},
115163
{
116-
"description": "contains shared birthdays",
117-
"cases": [
118-
{
119-
"uuid": "ade37c87-f41d-4929-962a-286b4d1d048a",
120-
"description": "with shared birthday",
121-
"property": "containsSharedBirthday",
122-
"input": {
123-
"birthdates": ["1970-01-19", "1975-06-03", "2003-01-19"]
124-
},
125-
"expected": true
126-
},
127-
{
128-
"uuid": "1d155b33-c6e1-46b9-81fa-09123ae378ea",
129-
"description": "without shared birthday",
130-
"property": "containsSharedBirthday",
131-
"input": {
132-
"birthdates": ["1984-04-05", "2000-09-17", "1966-10-12"]
133-
},
134-
"expected": false
135-
}
136-
]
137-
},
138-
{
139-
"description": "probability of at least one shared birthday",
164+
"description": "estimated probability of at least one shared birthday",
140165
"cases": [
141166
{
142167
"uuid": "89a462a4-4265-4912-9506-fb027913f221",
143168
"description": "for one person",
144169
"scenarios": ["random"],
145-
"property": "probabilityForSharedBirthday",
170+
"property": "estimatedProbabilityOfSharedBirthday",
146171
"input": {
147172
"groupSize": 1
148173
},
@@ -152,7 +177,7 @@
152177
"uuid": "ec31c787-0ebb-4548-970c-5dcb4eadfb5f",
153178
"description": "among ten people",
154179
"scenarios": ["random"],
155-
"property": "probabilityForSharedBirthday",
180+
"property": "estimatedProbabilityOfSharedBirthday",
156181
"input": {
157182
"groupSize": 10
158183
},
@@ -162,7 +187,7 @@
162187
"uuid": "b548afac-a451-46a3-9bb0-cb1f60c48e2f",
163188
"description": "among twenty-three people",
164189
"scenarios": ["random"],
165-
"property": "probabilityForSharedBirthday",
190+
"property": "estimatedProbabilityOfSharedBirthday",
166191
"input": {
167192
"groupSize": 23
168193
},
@@ -172,7 +197,7 @@
172197
"uuid": "e43e6b9d-d77b-4f6c-a960-0fc0129a0bc5",
173198
"description": "among seventy people",
174199
"scenarios": ["random"],
175-
"property": "probabilityForSharedBirthday",
200+
"property": "estimatedProbabilityOfSharedBirthday",
176201
"input": {
177202
"groupSize": 70
178203
},

0 commit comments

Comments
 (0)