Test case
This commit is contained in:
@@ -34,6 +34,7 @@ TESTS = \
|
|||||||
tests/encode.sh \
|
tests/encode.sh \
|
||||||
tests/encode-b58c.sh \
|
tests/encode-b58c.sh \
|
||||||
tests/encode-fail.sh \
|
tests/encode-fail.sh \
|
||||||
|
tests/encode-neg-index.sh \
|
||||||
tests/encode-small.sh
|
tests/encode-small.sh
|
||||||
SH_LOG_COMPILER = /bin/sh
|
SH_LOG_COMPILER = /bin/sh
|
||||||
AM_TESTS_ENVIRONMENT = PATH='$(srcdir)':"$$PATH"; export PATH;
|
AM_TESTS_ENVIRONMENT = PATH='$(srcdir)':"$$PATH"; export PATH;
|
||||||
|
|||||||
4
tests/encode-neg-index.sh
Executable file
4
tests/encode-neg-index.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# This input causes the loop iteration counter to go negative
|
||||||
|
b58=$(echo '00CEF022FA' | xxd -r -p | base58)
|
||||||
|
test x$b58 = x16Ho7Hs
|
||||||
Reference in New Issue
Block a user