aboutsummaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-06-27 06:14:22 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-06-27 06:16:09 +0300
commit705340cf8db90544054b930e5c143191068ffbba (patch)
tree732b2b4a90ef383804184295500bed1237690741 /sample
parent9e500cf87537d7b5017ac29e938a7cc75879bddd (diff)
downloadmolodivo-705340cf8db90544054b930e5c143191068ffbba.tar.gz
Add sample with per-ministry limits
Diffstat (limited to 'sample')
-rw-r--r--sample/limitedBudget.json39
-rw-r--r--sample/limitedBudget.out.json65
2 files changed, 104 insertions, 0 deletions
diff --git a/sample/limitedBudget.json b/sample/limitedBudget.json
new file mode 100644
index 0000000..865e46e
--- /dev/null
+++ b/sample/limitedBudget.json
@@ -0,0 +1,39 @@
+{
+ "bills": [
+ {
+ "name": "An Act to Construct the Great Wall of Malodivo",
+ "ministry": "Defense",
+ "amount": 300
+ },
+ {
+ "name": "An Act to Construct Shelters for the Homeless",
+ "ministry": "Welfare",
+ "amount": 400
+ },
+ {
+ "name": "An Act to Increase Retirement Benefits for Veterans",
+ "ministry": "Welfare",
+ "amount": 900
+ }
+ ],
+ "ministries": [
+ {
+ "name": "Welfare",
+ "amount": 1000
+ }
+ ],
+ "districts": [
+ {
+ "name": "Palolene",
+ "amount": 500
+ },
+ {
+ "name": "SouthernPalolene",
+ "amount": 500
+ },
+ {
+ "name": "Lakos",
+ "amount": 600
+ }
+ ]
+}
diff --git a/sample/limitedBudget.out.json b/sample/limitedBudget.out.json
new file mode 100644
index 0000000..fb36df7
--- /dev/null
+++ b/sample/limitedBudget.out.json
@@ -0,0 +1,65 @@
+[
+ {
+ "bill": {
+ "amount": 692,
+ "name": "An Act to Increase Retirement Benefits for Veterans",
+ "ministry": "Welfare"
+ },
+ "districts": [
+ {
+ "amount": 259,
+ "name": "Lakos"
+ },
+ {
+ "amount": 216,
+ "name": "Palolene"
+ },
+ {
+ "amount": 216,
+ "name": "SouthernPalolene"
+ }
+ ]
+ },
+ {
+ "bill": {
+ "amount": 307,
+ "name": "An Act to Construct Shelters for the Homeless",
+ "ministry": "Welfare"
+ },
+ "districts": [
+ {
+ "amount": 115,
+ "name": "Lakos"
+ },
+ {
+ "amount": 95,
+ "name": "Palolene"
+ },
+ {
+ "amount": 95,
+ "name": "SouthernPalolene"
+ }
+ ]
+ },
+ {
+ "bill": {
+ "amount": 300,
+ "name": "An Act to Construct the Great Wall of Malodivo",
+ "ministry": "Defense"
+ },
+ "districts": [
+ {
+ "amount": 112,
+ "name": "Lakos"
+ },
+ {
+ "amount": 93,
+ "name": "Palolene"
+ },
+ {
+ "amount": 93,
+ "name": "SouthernPalolene"
+ }
+ ]
+ }
+]