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

View File

@@ -2,15 +2,8 @@
#include "random.h"
int GenZero(int n)
{
return 0;
}
int GenMax(int n)
{
return n-1;
}
extern int GenZero(int n);
extern int GenMax(int n);
TEST(Random, MappedShuffle) {
std::vector<int> a {8, 4, 6, 3, 5};