work on test

This commit is contained in:
Christian Grothoff 2019-12-07 22:08:58 +01:00
parent de6d13e910
commit dd66d2ae7b
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 5 additions and 2 deletions

View File

@ -439,6 +439,9 @@ Disagreements imply that either the exchange made a loss (sending out
too much money), or screwed a customer (and thus at least needs to fix too much money), or screwed a customer (and thus at least needs to fix
the financial damage done to the customer). the financial damage done to the customer).
Note that the deltas only sum up the issues where $P \not= 0$ as only
then we can tell if the problem lead to a profit or loss.
% Table generation tested by testcase #18 in test-auditor.sh % Table generation tested by testcase #18 in test-auditor.sh
{% if data.amount_arithmetic_inconsistencies|length() == 0 %} {% if data.amount_arithmetic_inconsistencies|length() == 0 %}

View File

@ -1079,12 +1079,12 @@ echo PASS
echo -n "Testing risk/loss calculation... " echo -n "Testing risk/loss calculation... "
AMOUNT=`jq -r .emergencies_risk_by_amount < test-audit.json` AMOUNT=`jq -r .emergencies_risk_by_amount < test-audit.json`
if test "x$AMOUNT" == "xTESTKUDOS:0" if test "x$AMOUNT" != "xTESTKUDOS:0"
then then
exit_fail "Reported amount wrong: $AMOUNT" exit_fail "Reported amount wrong: $AMOUNT"
fi fi
AMOUNT=`jq -r .emergencies_risk_by_count < test-audit.json` AMOUNT=`jq -r .emergencies_risk_by_count < test-audit.json`
if test "x$AMOUNT" == "xTESTKUDOS:0" if test "x$AMOUNT" != "xTESTKUDOS:0"
then then
exit_fail "Reported amount wrong: $AMOUNT" exit_fail "Reported amount wrong: $AMOUNT"
fi fi