[uClibc-cvs] CVS uClibc++/tests

CVS User gkajmowi gkajmowi at codepoet.org
Mon Jan 3 17:50:25 UTC 2005


Update of /var/cvs/uClibc++/tests
In directory nail:/tmp/cvs-serv30084/tests

Modified Files:
	settest.cpp vectortest.cpp 
Log Message:
Fixed vector for <int> data type with insert.  Hack stolen from glibc (idea only).  I'm begining to hate C++.

--- /var/cvs/uClibc++/tests/settest.cpp	2004/12/23 16:06:46	1.3
+++ /var/cvs/uClibc++/tests/settest.cpp	2005/01/03 17:50:23	1.4
@@ -124,7 +124,7 @@
 	b.insert(52);
 	b.insert(92);
 
-	c.assign(20, 0.0);
+	c.assign(20, 0);
 
 	std::cout << "The following two lines should be identical:\n";
 	std::cout << "10 12 19 22 32 38 52 72 92 " << std::endl;
@@ -155,7 +155,7 @@
 	b.insert(52);
 	b.insert(92);
 
-	c.assign(20, 0.0);
+	c.assign(20, 0);
 	std::cout << "Size of c: " << c.size() << std::endl;
 
         std::cout << "The following two lines should be identical:\n";
@@ -188,7 +188,7 @@
 	b.insert(52);
 	b.insert(92);
 
-	c.assign(20, 0.0);
+	c.assign(20, 0);
 
 	std::cout << "The following two lines should be identical:\n";
 	std::cout << "10 72 " << std::endl;
@@ -219,7 +219,7 @@
 	b.insert(52);
 	b.insert(92);
 
-	c.assign(20, 0.0);
+	c.assign(20, 0);
 
 	std::cout << "The following two lines should be identical:\n";
 	std::cout << "10 19 22 38 72 92 " << std::endl;
--- /var/cvs/uClibc++/tests/vectortest.cpp	2004/08/20 16:17:08	1.2
+++ /var/cvs/uClibc++/tests/vectortest.cpp	2005/01/03 17:50:23	1.3
@@ -7,10 +7,10 @@
 	std::string stest;
 	ctest.push_back('t');
 
-	std::vector<unsigned int> test;
-	std::vector<unsigned int> test1;
+	std::vector<int> test;
+	std::vector<int> test1;
 	unsigned int temp;
-	std::vector<unsigned int>::iterator i,j;
+	std::vector<int>::iterator i,j;
 
 	test.push_back(1);
 	test.push_back(2);



More information about the uClibc-cvs mailing list