tests: Check small decode/encode
This commit is contained in:
@@ -29,10 +29,12 @@ TESTS = \
|
|||||||
tests/decode-b58c-null.sh \
|
tests/decode-b58c-null.sh \
|
||||||
tests/decode-b58c-toolong.sh \
|
tests/decode-b58c-toolong.sh \
|
||||||
tests/decode-b58c-tooshort.sh \
|
tests/decode-b58c-tooshort.sh \
|
||||||
|
tests/decode-small.sh \
|
||||||
tests/decode-zero.sh \
|
tests/decode-zero.sh \
|
||||||
tests/encode.sh \
|
tests/encode.sh \
|
||||||
tests/encode-b58c.sh \
|
tests/encode-b58c.sh \
|
||||||
tests/encode-fail.sh
|
tests/encode-fail.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;
|
||||||
endif
|
endif
|
||||||
|
|||||||
3
tests/decode-small.sh
Normal file
3
tests/decode-small.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
hex=$(base58 -d 4 2 | xxd -p)
|
||||||
|
test x$hex = x01
|
||||||
3
tests/encode-small.sh
Normal file
3
tests/encode-small.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
b58=$(base58 1)
|
||||||
|
test x$b58 = xr
|
||||||
Reference in New Issue
Block a user