-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add single-cube fixture that triggers "mask/data size mismatch" error. * Add integration test that uses the fixture to trigger that error.
- Loading branch information
1 parent
34b2ced
commit ecb6dc6
Showing
3 changed files
with
306 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,286 @@ | ||
{ | ||
"result": { | ||
"counts": [ | ||
0, | ||
108, | ||
1, | ||
14, | ||
94, | ||
1, | ||
94, | ||
14, | ||
1, | ||
192, | ||
791, | ||
41, | ||
406, | ||
577, | ||
41, | ||
385, | ||
598, | ||
41 | ||
], | ||
"dimensions": [ | ||
{ | ||
"derived": true, | ||
"references": { | ||
"alias": "wealth_rc1", | ||
"description": "", | ||
"name": "Emerging Affluent", | ||
"notes": "" | ||
}, | ||
"type": { | ||
"categories": [ | ||
{ | ||
"id": 1, | ||
"missing": false, | ||
"name": "Emerging Affluent", | ||
"numeric_value": null | ||
}, | ||
{ | ||
"id": -1, | ||
"missing": true, | ||
"name": "No Data", | ||
"numeric_value": null | ||
} | ||
], | ||
"class": "categorical", | ||
"ordinal": false | ||
} | ||
}, | ||
{ | ||
"derived": true, | ||
"references": { | ||
"alias": "localincome_hk_rc", | ||
"description": "Monthly household income", | ||
"name": "Monthly household income (NET)", | ||
"notes": "", | ||
"subreferences": [ | ||
{ | ||
"alias": "localincome_hk_rc_1", | ||
"name": "Low (below HKD 25,000)" | ||
}, | ||
{ | ||
"alias": "localincome_hk_rc_2", | ||
"name": "Mid (HKD 25,000 - 49,999)" | ||
}, | ||
{ | ||
"alias": "localincome_hk_rc_3", | ||
"name": "High (HKD 50,000 or above)" | ||
} | ||
] | ||
}, | ||
"type": { | ||
"class": "enum", | ||
"elements": [ | ||
{ | ||
"id": 1, | ||
"missing": false, | ||
"value": { | ||
"derived": false, | ||
"id": "0001", | ||
"references": { | ||
"alias": "localincome_hk_rc_1", | ||
"name": "Low (below HKD 25,000)" | ||
}, | ||
"type": { | ||
"categories": [ | ||
{ | ||
"id": 1, | ||
"missing": false, | ||
"name": "Selected", | ||
"numeric_value": 1, | ||
"selected": true | ||
}, | ||
{ | ||
"id": 0, | ||
"missing": false, | ||
"name": "Other", | ||
"numeric_value": 0 | ||
}, | ||
{ | ||
"id": -1, | ||
"missing": true, | ||
"name": "No Data", | ||
"numeric_value": null | ||
} | ||
], | ||
"class": "categorical", | ||
"ordinal": false | ||
} | ||
} | ||
}, | ||
{ | ||
"id": 2, | ||
"missing": false, | ||
"value": { | ||
"derived": false, | ||
"id": "0002", | ||
"references": { | ||
"alias": "localincome_hk_rc_2", | ||
"name": "Mid (HKD 25,000 - 49,999)" | ||
}, | ||
"type": { | ||
"categories": [ | ||
{ | ||
"id": 1, | ||
"missing": false, | ||
"name": "Selected", | ||
"numeric_value": 1, | ||
"selected": true | ||
}, | ||
{ | ||
"id": 0, | ||
"missing": false, | ||
"name": "Other", | ||
"numeric_value": 0 | ||
}, | ||
{ | ||
"id": -1, | ||
"missing": true, | ||
"name": "No Data", | ||
"numeric_value": null | ||
} | ||
], | ||
"class": "categorical", | ||
"ordinal": false | ||
} | ||
} | ||
}, | ||
{ | ||
"id": 3, | ||
"missing": false, | ||
"value": { | ||
"derived": false, | ||
"id": "0003", | ||
"references": { | ||
"alias": "localincome_hk_rc_3", | ||
"name": "High (HKD 50,000 or above)" | ||
}, | ||
"type": { | ||
"categories": [ | ||
{ | ||
"id": 1, | ||
"missing": false, | ||
"name": "Selected", | ||
"numeric_value": 1, | ||
"selected": true | ||
}, | ||
{ | ||
"id": 0, | ||
"missing": false, | ||
"name": "Other", | ||
"numeric_value": 0 | ||
}, | ||
{ | ||
"id": -1, | ||
"missing": true, | ||
"name": "No Data", | ||
"numeric_value": null | ||
} | ||
], | ||
"class": "categorical", | ||
"ordinal": false | ||
} | ||
} | ||
} | ||
], | ||
"subtype": { | ||
"class": "variable" | ||
} | ||
} | ||
}, | ||
{ | ||
"derived": true, | ||
"references": { | ||
"alias": "localincome_hk_rc", | ||
"description": "Monthly household income", | ||
"name": "Monthly household income (NET)", | ||
"notes": "", | ||
"subreferences": [ | ||
{ | ||
"alias": "localincome_hk_rc_1", | ||
"name": "Low (below HKD 25,000)" | ||
}, | ||
{ | ||
"alias": "localincome_hk_rc_2", | ||
"name": "Mid (HKD 25,000 - 49,999)" | ||
}, | ||
{ | ||
"alias": "localincome_hk_rc_3", | ||
"name": "High (HKD 50,000 or above)" | ||
} | ||
] | ||
}, | ||
"type": { | ||
"categories": [ | ||
{ | ||
"id": 1, | ||
"missing": false, | ||
"name": "Selected", | ||
"numeric_value": 1, | ||
"selected": true | ||
}, | ||
{ | ||
"id": 0, | ||
"missing": false, | ||
"name": "Other", | ||
"numeric_value": 0 | ||
}, | ||
{ | ||
"id": -1, | ||
"missing": true, | ||
"name": "No Data", | ||
"numeric_value": null | ||
} | ||
], | ||
"class": "categorical", | ||
"ordinal": false, | ||
"subvariables": [ | ||
"0001", | ||
"0002", | ||
"0003" | ||
] | ||
} | ||
} | ||
], | ||
"measures": { | ||
"count": { | ||
"data": [ | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0 | ||
], | ||
"metadata": { | ||
"derived": true, | ||
"references": {}, | ||
"type": { | ||
"class": "numeric", | ||
"integer": false, | ||
"missing_reasons": { | ||
"No Data": -1 | ||
}, | ||
"missing_rules": {} | ||
} | ||
}, | ||
"n_missing": 1133 | ||
} | ||
}, | ||
"n": 1133 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters