work on test
This commit is contained in:
parent
de6d13e910
commit
dd66d2ae7b
@ -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
|
||||
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
|
||||
|
||||
{% if data.amount_arithmetic_inconsistencies|length() == 0 %}
|
||||
|
@ -1079,12 +1079,12 @@ echo PASS
|
||||
echo -n "Testing risk/loss calculation... "
|
||||
|
||||
AMOUNT=`jq -r .emergencies_risk_by_amount < test-audit.json`
|
||||
if test "x$AMOUNT" == "xTESTKUDOS:0"
|
||||
if test "x$AMOUNT" != "xTESTKUDOS:0"
|
||||
then
|
||||
exit_fail "Reported amount wrong: $AMOUNT"
|
||||
fi
|
||||
AMOUNT=`jq -r .emergencies_risk_by_count < test-audit.json`
|
||||
if test "x$AMOUNT" == "xTESTKUDOS:0"
|
||||
if test "x$AMOUNT" != "xTESTKUDOS:0"
|
||||
then
|
||||
exit_fail "Reported amount wrong: $AMOUNT"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user