38 lines
673 B
C++
38 lines
673 B
C++
#ifndef _ALGORITHM_TEST_H_
|
|
#define _ALGORITHM_TEST_H_
|
|
|
|
#include "TestUtil.h"
|
|
|
|
#include "../Algorithm.h"
|
|
#include <algorithm>
|
|
|
|
#include <array>
|
|
#include <cctype>
|
|
#include <cstring>
|
|
#include <cassert>
|
|
#include <vector>
|
|
|
|
namespace TinySTL{
|
|
namespace AlgorithmTest{
|
|
void testFill();
|
|
void testFillN();
|
|
void testMinMax();
|
|
void testHeapAlgorithm();
|
|
void testIsHeap();
|
|
void testAllOf();
|
|
void testNoneOf();
|
|
void testAnyOf();
|
|
void testForEach();
|
|
void testFind();
|
|
void testFindEnd();
|
|
void testFindFirstOf();
|
|
void testAdjacentFind();
|
|
void testCount();
|
|
void testMismatch();
|
|
void testEqual();
|
|
void testIsPermutation();
|
|
void testSearch();
|
|
}
|
|
}
|
|
|
|
#endif |