Test case

This commit is contained in:
Jon Griffiths
2016-04-10 14:13:48 +12:00
parent a861d3c57f
commit bee00a6e88
2 changed files with 5 additions and 0 deletions

View File

@@ -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
View 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