添加测试用例
This commit is contained in:
@@ -176,7 +176,13 @@ namespace TinySTL{
|
|||||||
v1.erase(v1.begin(), v1.begin() + 3);
|
v1.erase(v1.begin(), v1.begin() + 3);
|
||||||
v2.erase(v2.begin(), v2.begin() + 3);
|
v2.erase(v2.begin(), v2.begin() + 3);
|
||||||
assert(TinySTL::Test::container_equal(v1, v2));
|
assert(TinySTL::Test::container_equal(v1, v2));
|
||||||
|
}
|
||||||
|
void testCase14(){
|
||||||
|
tsVec<int> foo(3, 100);
|
||||||
|
tsVec<int> bar(2, 200);
|
||||||
|
|
||||||
|
assert(!(foo == bar));
|
||||||
|
assert(foo != bar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -194,8 +200,9 @@ int main(){
|
|||||||
//testCase9();
|
//testCase9();
|
||||||
//testCase10();
|
//testCase10();
|
||||||
//testCase11();
|
//testCase11();
|
||||||
testCase12();
|
//testCase12();
|
||||||
testCase13();
|
//testCase13();
|
||||||
|
//testCase14();
|
||||||
system("pause");
|
system("pause");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -32,6 +32,8 @@ namespace TinySTL{
|
|||||||
void testCase10();
|
void testCase10();
|
||||||
void testCase11();
|
void testCase11();
|
||||||
void testCase12();
|
void testCase12();
|
||||||
|
void testCase13();
|
||||||
|
void testCase14();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user