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/regex.cpp | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/tests/regex.cpp (limited to 'src/tests/regex.cpp') diff --git a/src/tests/regex.cpp b/src/tests/regex.cpp deleted file mode 100644 index 376fbb2..0000000 --- a/src/tests/regex.cpp +++ /dev/null @@ -1,38 +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 - -int main( int argc, char *argv[] ) -{ - if( argc < 3 ) - { - printf("No... %s \n\n", argv[0] ); - return 0; - } - - Bu::RegEx re( argv[1] ); - - printf("Regex: %s\n", argv[1] ); - printf("Match: %s\n", argv[2] ); - - if( re.execute( argv[2] ) ) - { - for( int j = 0; j < re.getNumSubStrings(); j++ ) - { - printf("SubStr %d: %s\n", j, re.getSubString( j ).getStr() ); - } - } - else - { - printf("Regex did not match.\n"); - } - - return 0; -} - -- cgit v1.2.3