[uClibc-cvs] CVS uClibc++/tests/testoutput

CVS User gkajmowi gkajmowi at codepoet.org
Sun Jan 9 06:10:51 UTC 2005


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

Modified Files:
	dequetest.good maptest.good newdel.good 
Log Message:
Change allocator functionality so that it works according to spec.
Conversion of STL to use allocator::construct/destroy
Make test suite nicer.
Change map operator[] code to map suggested spec code.

--- /var/cvs/uClibc++/tests/testoutput/dequetest.good	2004/12/23 16:06:50	1.1
+++ /var/cvs/uClibc++/tests/testoutput/dequetest.good	2005/01/09 06:10:48	1.2
@@ -1,12 +1,14 @@
 deque test start
-Deque elements:
-12
-13
-14
-Deque elements by subscript:
-12
-13
-14
+
+Test of push_back():
+The following two lines should be identical.
+12 13 14 
+12 13 14 
+
+Test of subscripting:
+The following two lines should be identical
+12 13 14 
+12 13 14 
 Pushing many elements to the front:
 Pushing in: 1 1
 Pushing in: 2 2
@@ -31,272 +33,53 @@
 Pushing in: 21 21
 Pushing in: 22 22
 Pushing in: 23 23
-Deque elements:
-23
-22
-21
-20
-19
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
-12
-13
-14
-Push back:
-23
-22
-21
-20
-19
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
-12
-13
-14
-2.5
-Pop_front:
-22
-21
-20
-19
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
-12
-13
-14
-2.5
-Pop_back:
-22
-21
-20
-19
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
-12
-13
-14
+Complete list of elements:
+The following two lines should be identical
+23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+
+ Testing push_back():
+The following two lines should be identical
+23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 2.5
+23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 2.5 
+
+Testing pop_front:
+The following two lines should be identical
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 2.5
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 2.5 
+
+Testing pop_back:
+The following two lines should be identical
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+
 Copy constructor:
-22
-21
-20
-19
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
-12
-13
-14
+The following two lines should be identical
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+
 Assignement:
-22
-21
-20
-19
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
-12
-13
-14
+The following two lines should be identical
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+
 Insert near beginning:
-22
-21
-25
-20
-19
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
-12
-13
-14
+The following two lines should be identical
+22 21 25 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+22 21 25 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+
 Insert near end:
-22
-21
-25
-20
-19
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
-12
-27
-13
-14
+The following two lines should be identical
+22 21 25 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 27 13 14 
+22 21 25 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 27 13 14 
+
 Erase near begining:
-22
-21
-20
-19
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
-12
-27
-13
-14
+The following two lines should be identical
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 27 13 14 
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 27 13 14 
+
 Erase near end:
-22
-21
-20
-19
-18
-17
-16
-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
-12
-13
-14
-Returned iterator points to: 13
+The following two lines should be identical
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 12 13 14 
+Returned iterator points to: 13 - should be 13
--- /var/cvs/uClibc++/tests/testoutput/maptest.good	2005/01/06 18:03:09	1.2
+++ /var/cvs/uClibc++/tests/testoutput/maptest.good	2005/01/09 06:10:48	1.3
@@ -1,11 +1,11 @@
 Start of map test
 Adding a few elements...
 Elements:
-test["b"] = 2
-test["a"] = 1
-test["k"] = 11
+test["b"] = 2 - should be 2
+test["a"] = 1 - should be 1
+test["k"] = 11 - should be 11
 Reasigning the value of a
-test["a"] = 65
+test["a"] = 65 - should be 65
 All of the contents of test:
 First element: a: 65
 First element: a: 65
@@ -31,6 +31,7 @@
 c: 3
 g: 6
 k: 11
+Attempting to insert same element again: no insert - PASSED
 Erasing element "g"
 a: 65
 b: 2
--- /var/cvs/uClibc++/tests/testoutput/newdel.good	2004/12/23 16:06:50	1.1
+++ /var/cvs/uClibc++/tests/testoutput/newdel.good	2005/01/09 06:10:48	1.2
@@ -1,22 +1,27 @@
-Executing default base class constructor
+Executing default base class constructor. a: 0
 Base class print function with a=0
 Executing base class destructor
-Executing default base class constructor
-Executing default base class constructor
-Executing default base class constructor
+Executing default base class constructor. a: 0
+Executing default base class constructor. a: 0
+Executing default base class constructor. a: 0
 Base class print function with a=0
 Base class print function with a=0
 Base class print function with a=0
 Executing base class destructor
 Executing base class destructor
 Executing base class destructor
-Executing default base class constructor
-Executing default sub class constructor
+Executing default base class constructor. a: 0
+Executing default sub class constructor. a: 0, f: 0.000000
 Sub class print function with a=0 and f=0.000000
 Executing sub class destructor
 Executing base class destructor
-Executing default base class constructor
-Executing default sub class constructor
+Executing default base class constructor. a: 0
+Executing default sub class constructor. a: 0, f: 0.000000
 Sub class print function with a=0 and f=0.000000
 Executing sub class destructor
 Executing base class destructor
+Checking allocator
+Executing default base class constructor. a: 0
+Executing base class destructor
+Base class print function with a=0
+Executing base class destructor



More information about the uClibc-cvs mailing list