|
11 | 11 | {
|
12 | 12 | "description": "shared birthday",
|
13 | 13 | "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 | + , |
14 | 24 | {
|
15 | 25 | "uuid": "f7b3eb26-bcfc-4c1e-a2de-af07afc33f45",
|
16 |
| - "description": "same year, month, and day", |
| 26 | + "description": "two birthdates with same year, month, and day", |
17 | 27 | "property": "sharedBirthday",
|
18 | 28 | "input": {
|
19 |
| - "birthdate1": "2000-01-01", |
20 |
| - "birthdate2": "2000-01-01" |
| 29 | + "birthdates": ["2000-01-01", "2000-01-01"] |
21 | 30 | },
|
22 | 31 | "expected": true
|
23 | 32 | },
|
24 | 33 | {
|
25 | 34 | "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", |
27 | 36 | "property": "sharedBirthday",
|
28 | 37 | "input": {
|
29 |
| - "birthdate1": "2012-05-09", |
30 |
| - "birthdate2": "2012-05-17" |
| 38 | + "birthdates": ["2012-05-09", "2012-05-17"] |
31 | 39 | },
|
32 | 40 | "expected": false
|
33 | 41 | },
|
34 | 42 | {
|
35 | 43 | "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", |
37 | 45 | "property": "sharedBirthday",
|
38 | 46 | "input": {
|
39 |
| - "birthdate1": "1999-10-23", |
40 |
| - "birthdate2": "1988-10-23" |
| 47 | + "birthdates": ["1999-10-23", "1988-10-23"] |
41 | 48 | },
|
42 | 49 | "expected": true
|
43 | 50 | },
|
44 | 51 | {
|
45 | 52 | "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", |
47 | 54 | "property": "sharedBirthday",
|
48 | 55 | "input": {
|
49 |
| - "birthdate1": "2007-12-19", |
50 |
| - "birthdate2": "2007-04-27" |
| 56 | + "birthdates": ["2007-12-19", "2007-04-27"] |
51 | 57 | },
|
52 | 58 | "expected": false
|
53 | 59 | },
|
54 | 60 | {
|
55 | 61 | "uuid": "df5daba6-0879-4480-883c-e855c99cdaa3",
|
56 |
| - "description": "different year, month, and day", |
| 62 | + "description": "two birthdates with different year, month, and day", |
57 | 63 | "property": "sharedBirthday",
|
58 | 64 | "input": {
|
59 |
| - "birthdate1": "1997-08-04", |
60 |
| - "birthdate2": "1963-11-23" |
| 65 | + "birthdates": ["1997-08-04", "1963-11-23"] |
61 | 66 | },
|
62 | 67 | "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 |
63 | 111 | }
|
64 | 112 | ]
|
65 | 113 | },
|
|
113 | 161 | ]
|
114 | 162 | },
|
115 | 163 | {
|
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", |
140 | 165 | "cases": [
|
141 | 166 | {
|
142 | 167 | "uuid": "89a462a4-4265-4912-9506-fb027913f221",
|
143 | 168 | "description": "for one person",
|
144 | 169 | "scenarios": ["random"],
|
145 |
| - "property": "probabilityForSharedBirthday", |
| 170 | + "property": "estimatedProbabilityOfSharedBirthday", |
146 | 171 | "input": {
|
147 | 172 | "groupSize": 1
|
148 | 173 | },
|
|
152 | 177 | "uuid": "ec31c787-0ebb-4548-970c-5dcb4eadfb5f",
|
153 | 178 | "description": "among ten people",
|
154 | 179 | "scenarios": ["random"],
|
155 |
| - "property": "probabilityForSharedBirthday", |
| 180 | + "property": "estimatedProbabilityOfSharedBirthday", |
156 | 181 | "input": {
|
157 | 182 | "groupSize": 10
|
158 | 183 | },
|
|
162 | 187 | "uuid": "b548afac-a451-46a3-9bb0-cb1f60c48e2f",
|
163 | 188 | "description": "among twenty-three people",
|
164 | 189 | "scenarios": ["random"],
|
165 |
| - "property": "probabilityForSharedBirthday", |
| 190 | + "property": "estimatedProbabilityOfSharedBirthday", |
166 | 191 | "input": {
|
167 | 192 | "groupSize": 23
|
168 | 193 | },
|
|
172 | 197 | "uuid": "e43e6b9d-d77b-4f6c-a960-0fc0129a0bc5",
|
173 | 198 | "description": "among seventy people",
|
174 | 199 | "scenarios": ["random"],
|
175 |
| - "property": "probabilityForSharedBirthday", |
| 200 | + "property": "estimatedProbabilityOfSharedBirthday", |
176 | 201 | "input": {
|
177 | 202 | "groupSize": 70
|
178 | 203 | },
|
|
0 commit comments