shithub: mc

Download patch

ref: 69225171f63708048bbc09c0d4a6c6485229ce72
parent: 39331f834db694be103a7ecb1aac3ba2cc5279fc
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Dec 30 15:33:39 EST 2017

Fix test deps for crypto.

--- a/lib/crypto/bld.sub
+++ b/lib/crypto/bld.sub
@@ -33,4 +33,7 @@
 testdeps =
 	testutil
 	../testr:testr
+	../sys:sys
+	../iter:iter
+	../std:std
 ;;
--- 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 @@
 	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")
 	;;