integration testing scripts #64
|
@ -15,8 +15,6 @@
|
||||||
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
|
|||||||
|
|
||||||
RES=(0)
|
RES=(0)
|
||||||
FINALRES=0
|
FINALRES=0
|
||||||
CHUNK_TEST_RES="010000000000000000000000000000000000000000000000000000000000000000000000cc59e59ff97ac092b55e423aa549"
|
|
||||||
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
|
|||||||
|
|
||||||
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
|
|||||||
# functions
|
# functions
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,7 +38,7 @@ function want_got {
|
||||||
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
|
|||||||
}
|
}
|
||||||
|
|
||||||
function want_greater {
|
function want_greater {
|
||||||
if [ "${WANT}" -gt "${GOT}" ]; then
|
if [ ${WANT} -ge ${GOT} ]; then
|
||||||
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
|
|||||||
echo "WANT: ${WANT}"
|
echo "WANT: ${WANT}"
|
||||||
echo "GOT: ${GOT}"
|
echo "GOT: ${GOT}"
|
||||||
RES+=(1)
|
RES+=(1)
|
||||||
|
@ -94,7 +92,7 @@ read -r -d '' CMD <<- EOM
|
||||||
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
|
|||||||
--data '{"id": 1, "method": "blockchain.block.get_chunk", "params": [0]}'
|
--data '{"id": 1, "method": "blockchain.block.get_chunk", "params": [0]}'
|
||||||
| jq .result | sed 's/"//g' | head -c 100
|
| jq .result | sed 's/"//g' | head -c 100
|
||||||
EOM
|
EOM
|
||||||
WANT="${CHUNK_TEST_RES}"
|
WANT="010000000000000000000000000000000000000000000000000000000000000000000000cc59e59ff97ac092b55e423aa549"
|
||||||
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
|
|||||||
test_command_with_want
|
test_command_with_want
|
||||||
|
|
||||||
### blockchain.block.get_header
|
### blockchain.block.get_header
|
||||||
|
|
||||||
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
Suggest substituting the value here, and eliminating Suggest substituting the value here, and eliminating `CHUNK_TEST_RES` as it's not reused by other tests.
Greater than or equal to ( Greater than or equal to (`-ge`). At least for the one test using this, you wouldn't want GOT=0 to pass.
I think I've just transposed the WANT and GOT, but the I think I've just transposed the WANT and GOT, but the `-gt` is correct. I want a number greater than 0.
Actually, nvm, you are right. Actually, nvm, you are right.
|
Suggest substituting the value here, and eliminating
CHUNK_TEST_RES
as it's not reused by other tests.Greater than or equal to (
-ge
). At least for the one test using this, you wouldn't want GOT=0 to pass.