From 705340cf8db90544054b930e5c143191068ffbba Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 27 Jun 2017 06:14:22 +0300 Subject: Add sample with per-ministry limits --- sample/limitedBudget.json | 39 ++++++++++++++++++++++++++ sample/limitedBudget.out.json | 65 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 sample/limitedBudget.json create mode 100644 sample/limitedBudget.out.json (limited to 'sample') 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" + } + ] + } +] -- cgit v1.2.3