From 4b9289cfb260f4bcecaf23a810584ef6ef8e8501 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 30 Mar 2011 22:33:41 +0000 Subject: Ok, string stuff is working much, much better, a load of new unit tests have been added, and I deleted a whole slew of stupid old tests that I don't need. --- src/tests/listsort.cpp | 79 -------------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 src/tests/listsort.cpp (limited to 'src/tests/listsort.cpp') diff --git a/src/tests/listsort.cpp b/src/tests/listsort.cpp deleted file mode 100644 index 4873a05..0000000 --- a/src/tests/listsort.cpp +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2007-2011 Xagasoft, All rights reserved. - * - * This file is part of the libbu++ library and is released under the - * terms of the license contained in the file LICENSE. - */ - -#include -#include -#include - -using namespace Bu; - -int main() -{ - /* - List il; - il.append( 5 ); - il.append( 12 ); - il.append( 0 ); - il.append( 7 ); - il.append( 3 ); - il.append( 5 ); - Bu::__basicLTCmp cmp; - il.sortI( cmp ); - */ - - String a("Soggy"), b("Sam"); - - if( a < b ) - { - sio << "Bad" << sio.nl; - } - else - { - sio << "Good" << sio.nl; - } - - typedef List StrList; - - StrList lNames; - - lNames.append("George"); - lNames.append("Sam"); - lNames.append("Abby"); - lNames.append("Zorro"); - lNames.append("Brianna"); - lNames.append("Kate"); - lNames.append("Soggy"); - - sio << "Names: " << lNames << sio.nl; - lNames.sort(); - - sio << "Names: " << lNames << sio.nl; - - StrList lNames2; - - lNames2.insertSorted("George"); - lNames2.insertSorted("Sam"); - lNames2.insertSorted("Abby"); - lNames2.insertSorted("Zorro"); - lNames2.insertSorted("Brianna"); - lNames2.insertSorted("Kate"); - lNames2.insertSorted("Soggy"); - - sio << "Names: " << lNames2 << sio.nl; - - if( lNames == lNames2 ) - { - sio << "They're the same." << sio.nl; - } - else - { - sio << "They're different." << sio.nl; - } - - return 0; -} - -- cgit v1.2.3