int main(){
	Vectors<int>* newVector = new Vectors<int>(10,10,0);
	for (int i=0; i<10; ++i){
		for (int j=0; j<10; ++j){
			newVector->insert(i, j, 5);
		}
	}
	newVector->print();
	
	for (int i=0; i<10; ++i){
		for (int j=0; j<10; ++j){
			newVector->remove(i, j);
		}
	}
	newVector->print();
	delete newVector;
	return 0;
}
Beispiel #2
0
TEST(Vectors, Print) {
	Vectors<std::string>* newVector = new Vectors<std::string>(15,15,"oo");
	newVector->insert(1,2,"xx");
	newVector->insert(9,8,"xx");
	newVector->insert(7,2,"xx");
	newVector->insert(6,4,"xx");
	newVector->insert(0,8,"xx");
	newVector->insert(10,12,"xx");
	newVector->insert(3,5,"xx");
	newVector->print();
	delete newVector;
}