Refactor test code to better test JSDescription::Randomized()
This commit is contained in:
13
src/gtest/utils.cpp
Normal file
13
src/gtest/utils.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user