diff options
author | Ori Bernstein <ori@eigenstate.org> | 2017-12-30 20:33:39 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2017-12-30 20:33:39 -0800 |
commit | 69225171f63708048bbc09c0d4a6c6485229ce72 (patch) | |
tree | b3d210c7ec9b7a95e251e217ccffe5d621645eab | |
parent | 39331f834db694be103a7ecb1aac3ba2cc5279fc (diff) | |
download | mc-69225171f63708048bbc09c0d4a6c6485229ce72.tar.gz |
Fix test deps for crypto.
-rw-r--r-- | lib/crypto/bld.sub | 3 | ||||
-rw-r--r-- | lib/crypto/test/chacha20.myr | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/crypto/bld.sub b/lib/crypto/bld.sub index 402634b..e40bf7d 100644 --- a/lib/crypto/bld.sub +++ b/lib/crypto/bld.sub @@ -33,4 +33,7 @@ lib testutil {noinst} = testdeps = testutil ../testr:testr + ../sys:sys + ../iter:iter + ../std:std ;; diff --git a/lib/crypto/test/chacha20.myr b/lib/crypto/test/chacha20.myr index 7ca349f..d271693 100644 --- a/lib/crypto/test/chacha20.myr +++ b/lib/crypto/test/chacha20.myr @@ -1,6 +1,7 @@ use std use testr use crypto +use iter type check = struct key : byte[:] @@ -848,7 +849,7 @@ const check = {chk crypto.chacha20keysetup(&st, chk.key) crypto.chacha20ivsetup(&st, chk.iv) - for (i, s) : std.byenum(chk.state) + for (i, s) : iter.byenum(chk.state) std.assert(st.input[i] == s, "mismatched state\n") ;; |