添加测试用例

This commit is contained in:
邹晓航
2014-12-22 10:13:38 +08:00
parent 32a3355d90
commit c94183f9b8
2 changed files with 11 additions and 2 deletions

View File

@@ -176,7 +176,13 @@ namespace TinySTL{
v1.erase(v1.begin(), v1.begin() + 3);
v2.erase(v2.begin(), v2.begin() + 3);
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();
//testCase10();
//testCase11();
testCase12();
testCase13();
//testCase12();
//testCase13();
//testCase14();
system("pause");
return 0;
}

View File

@@ -32,6 +32,8 @@ namespace TinySTL{
void testCase10();
void testCase11();
void testCase12();
void testCase13();
void testCase14();
}
}