From: John L. <mov...@us...> - 2003-10-30 03:41:08
|
Update of /cvsroot/oprofile/oprofile/libutil++/tests In directory sc8-pr-cvs1:/tmp/cvs-serv31572/libutil++/tests Modified Files: comma_list_tests.cpp Log Message: fix up confusion concerning generic_spec vs. comma_list Index: comma_list_tests.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/tests/comma_list_tests.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -d -r1.1 -r1.2 --- comma_list_tests.cpp 30 Oct 2003 02:16:04 -0000 1.1 +++ comma_list_tests.cpp 30 Oct 2003 03:41:05 -0000 1.2 @@ -45,28 +45,22 @@ int main() check(c1, 3, true); check(c1, 4, false); - generic_spec<int> gs1; - gs1.set("4"); - check(c1, gs1, false); - gs1.set("all"); - check(c1, gs1, true); - c1.set("all", false); check(c1, 2, true); check(c1, 4, true); check(c1, 5, true); - comma_list<string> c2; + comma_list<int> c2; + c2.set("6", true); c2.set("all", true); - check(c2, "foo", true); - check(c2, "", true); - check(c2, "all", true); + check(c2, 4, true); + check(c2, 0, true); - c2.set("bar", false); - check(c2, "foo", true); - check(c2, "bar", true); + c2.set("10", true); + check(c2, 10, true); + check(c2, 11, true); return EXIT_SUCCESS; } |