forked from hunterzhao/EasySTL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dequeTest.cpp
45 lines (38 loc) · 1.26 KB
/
dequeTest.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "dequeTest.h"
namespace EasySTL {
namespace DequeTest {
void testCase1(){
//std::string old_SGI_vector = "old_SGI_vector";
//std::string new_EasySTL_vector = "new_EasySTL_vector";
//stdVec<std::string> v1(10, "zzz");
// easyList<std::string> v1;
// v1.push_back("abc");
// v1.push_back("def");
// v1.push_back("ghi");
// v1.push_back("def");
// stdList<std::string> v2;
// v2.push_back("abc");
// v2.push_back("def");
// v2.push_back("ghi");
// v2.push_back("def");
stdDeque<double> v1;
v1.push_back(2);
v1.push_back(5);
v1.push_back(3);
v1.push_back(9);
easyDeque<double> v2;
v2.push_back(2);
v2.push_back(5);
v2.push_back(3);
v2.push_back(9);
if (EasySTL::Test::container_equal(v1, v2)){
std::cout <<"equel"<<std::endl;
}
//v1.transfer(v1.begin()+2, v2.begin(), v2.end());
//v1.reverse();
//std::cout<<v1.size()<<std::endl;
//v1.sort();
//EasySTL::Test::print_container(v1,"v1");
}
}
}