TestPartitionLog.cxx File Reference
#include <gtest/gtest.h>
#include <partition_log.hxx>
#include <fstream>
#include <functional>
#include <vector>
#include <string>
Include dependency graph for TestPartitionLog.cxx:

Go to the source code of this file.

Functions

 TEST (TestPartitionLog, build)
 

Function Documentation

TEST ( TestPartitionLog  ,
build   
)

Definition at line 44 of file TestPartitionLog.cxx.

45 {
46  Container randomdArray(RandomArrayInt, RandomArrayInt + sizeof(RandomArrayInt) / sizeof(int));
47  IT pivot = randomdArray.begin() + std::distance(randomdArray.begin(), randomdArray.end()) / 2;
48 
49  OFStream fileStream("partition_output.json");
50 
51  // Run partition - Should result in: max[begin, pivot[ <= pivot <= min]pivot, end]
52  PartitionLog<IT>::Build(fileStream, OpGetAll, randomdArray.begin(), pivot, randomdArray.end());
53 }
std::ofstream OFStream
Definition: typedef.hxx:38