[uClibc-cvs] svn commit: trunk/uClibc++/tests
gkajmowi at uclibc.org
gkajmowi at uclibc.org
Thu Aug 11 12:51:33 UTC 2005
Author: gkajmowi
Date: 2005-08-11 06:51:32 -0600 (Thu, 11 Aug 2005)
New Revision: 11108
Log:
Update to utility test
Modified:
trunk/uClibc++/tests/utilitytest.cpp
Changeset:
Modified: trunk/uClibc++/tests/utilitytest.cpp
===================================================================
--- trunk/uClibc++/tests/utilitytest.cpp 2005-08-11 03:25:34 UTC (rev 11107)
+++ trunk/uClibc++/tests/utilitytest.cpp 2005-08-11 12:51:32 UTC (rev 11108)
@@ -1,7 +1,7 @@
#include <utility>
#include <cstdio>
-using namespace std::rel_ops;
+//using namespace std::rel_ops;
void test_rel_ops();
@@ -76,25 +76,25 @@
//The required operations aren't being generated from rel_ops
-// if( p != q ){
-// printf("p != q (WRONG)\n");
-// }else{
-// printf("p !!= q (correct)\n");
-// }
+ if( p != q ){
+ printf("p != q (WRONG)\n");
+ }else{
+ printf("p !!= q (correct)\n");
+ }
-// if(q != p){
-// printf("q != p (WRONG)\n");
-// }else{
-// printf("q !!= p (correct)\n");
-// }
+ if(q != p){
+ printf("q != p (WRONG)\n");
+ }else{
+ printf("q !!= p (correct)\n");
+ }
-// p = std::make_pair(a, b);
-// if(p == q){
-// printf("p == q (correct)\n");
-// }else{
-// printf("p != q (WRONG)\n");
-// }
+ std::pair<Foo, Foo> r = std::make_pair(a, b);
+ if(p == r){
+ printf("p == r (correct)\n");
+ }else{
+ printf("p != r (WRONG)\n");
+ }
@@ -104,6 +104,7 @@
void test_rel_ops(){
+ using namespace std::rel_ops;
Foo a(5);
Foo b(5);
More information about the uClibc-cvs
mailing list