Skip to content

Commit

Permalink
tests: Check small decode/encode
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Aug 18, 2014
1 parent 9f0f047 commit 3e3cfa8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ TESTS = \
tests/decode-b58c-null.sh \
tests/decode-b58c-toolong.sh \
tests/decode-b58c-tooshort.sh \
tests/decode-small.sh \
tests/decode-zero.sh \
tests/encode.sh \
tests/encode-b58c.sh \
tests/encode-fail.sh
tests/encode-fail.sh \
tests/encode-small.sh
SH_LOG_COMPILER = /bin/sh
AM_TESTS_ENVIRONMENT = PATH='$(srcdir)':"$$PATH"; export PATH;
endif
Expand Down
3 changes: 3 additions & 0 deletions tests/decode-small.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
hex=$(base58 -d 4 2 | xxd -p)
test x$hex = x01
3 changes: 3 additions & 0 deletions tests/encode-small.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
b58=$(base58 1)
test x$b58 = xr

0 comments on commit 3e3cfa8

Please sign in to comment.