TestBinaryLog.cxx File Reference
#include <gtest/gtest.h>
#include <binary_log.hxx>
Include dependency graph for TestBinaryLog.cxx:

Go to the source code of this file.

Functions

 TEST (TestBinaryLog, build)
 

Function Documentation

TEST ( TestBinaryLog  ,
build   
)

Definition at line 44 of file TestBinaryLog.cxx.

45 {
46  const Container sortedArray(SortedArrayInt, SortedArrayInt + sizeof(SortedArrayInt) / sizeof(int));
47 
48  // Empty array
49  {
50  Container emptyArray = Container();
51  BinaryLogT::Build(std::cout, OpGetAll, emptyArray.begin(), emptyArray.end(), 0);
52  }
53 
54  BinaryLogT::Build(std::cout, OpGetMin, sortedArray.begin(), sortedArray.end(), -3);// First element
55  BinaryLogT::Build(std::cout, OpGetMin, sortedArray.begin(), sortedArray.end(), 8); // Existing random value
56 }