Enforce proper bounds of Amounts

This commit is contained in:
Nicholas Dudfield
2016-11-15 18:23:47 +10:00
parent f9ee5aa029
commit a1a938e895
8 changed files with 103 additions and 14 deletions

View File

@@ -2875,6 +2875,15 @@
"error": "value precision of 17 is greater than maximum iou precision of 16",
"is_negative": false
},
{
"test_json": {
"currency": "USD",
"value": "9999999999999999000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji"
},
"type": "Amount",
"error": "exponent is too large"
},
{
"test_json": {
"currency": "USD",