Refactor test code to better test JSDescription::Randomized()

This commit is contained in:
Jack Grigg
2016-10-18 12:44:56 -05:00
parent 2eeb6bebde
commit 3774c944f8
8 changed files with 110 additions and 43 deletions

13
src/gtest/utils.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include "zcash/JoinSplit.hpp"
ZCJoinSplit* params = ZCJoinSplit::Unopened();
int GenZero(int n)
{
return 0;
}
int GenMax(int n)
{
return n-1;
}