Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Remove lib
Browse files Browse the repository at this point in the history
  • Loading branch information
desaperados committed Mar 20, 2019
1 parent c95053b commit c5d679f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
13 changes: 0 additions & 13 deletions lib/test

This file was deleted.

17 changes: 15 additions & 2 deletions libexec/mcd/mcd-test
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
#!/usr/bin/env bash
if [[ $MCD_CHAIN != "testnet" ]]; then
if [[ $MCD_CHAIN == "mainnet" ]]; then
echo "Warning: testnet only. Do not test with real balances"
exit 1
fi

export SETH_ASYNC=yes
export ETH_GAS=700000
source lib/test

p() { [ $1 = "false" ] && echo "FAIL" && exit; }

numericCompare() {
p $(awk -v n1="${1}" -v n2="${2}" \
'BEGIN { print (n1 == n2) ? "true" : "false" }' 2>/dev/null)
}

assertBalanceChanged() {
diff=$(echo "$1 - $2" | bc)
numericCompare $diff $3
}

#====================================================================

testJoin() {
echo "Test: $MCD_ILK join $1"
Expand Down

0 comments on commit c5d679f

Please sign in to comment.