diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-08-12 16:30:33 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-08-12 16:30:33 +0200 |
commit | 561646e33cee7d2437b2732c484d2ea22312e925 (patch) | |
tree | 11e4899f6b413b179a48d57ef0576b25514463de /tests/url | |
parent | bb12c70e96e7fa3b13335dbfe877dfc68861237f (diff) | |
download | crawler-561646e33cee7d2437b2732c484d2ea22312e925.tar.gz crawler-561646e33cee7d2437b2732c484d2ea22312e925.tar.bz2 |
better naming of modules
Diffstat (limited to 'tests/url')
-rw-r--r-- | tests/url/GNUmakefile | 2 | ||||
-rwxr-xr-x | tests/url/Makefile.W32 | 2 | ||||
-rwxr-xr-x | tests/url/test1.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/url/GNUmakefile b/tests/url/GNUmakefile index 6a9104a..69d882d 100644 --- a/tests/url/GNUmakefile +++ b/tests/url/GNUmakefile @@ -35,7 +35,7 @@ local_clean: local_distclean: local_test: - @-for METHOD in simple google; do \ + @-for METHOD in simple_urlnormalizer google_urlnormalizer; do \ echo "Using URL normalizer '$$METHOD'.." ; \ ./exec_test test1 test1 "parse illegal protocol" $$METHOD parse www.andreasbaumann.cc ; \ ./exec_test test1 test2 "parse normal start URL without slash" $$METHOD parse http://www.andreasbaumann.cc ; \ diff --git a/tests/url/Makefile.W32 b/tests/url/Makefile.W32 index f2f74ee..27c140e 100755 --- a/tests/url/Makefile.W32 +++ b/tests/url/Makefile.W32 @@ -42,7 +42,7 @@ local_distclean: local_test: @-copy "$(ICU_DIR)\bin\icuuc49.dll" . >NUL @-copy "$(ICU_DIR)\bin\icudt49.dll" . >NUL - @-for %%m in ( simple google ) do \ + @-for %%m in ( simple_urlnormalizer google_urlnormalizer ) do \ @echo Using URL normalizer '%m'.. & \ @exec_test test1 test1 "parse illegal protocol" %m parse www.andreasbaumann.cc & \ @exec_test test1 test2 "parse normal start URL without slash" %m parse http://www.andreasbaumann.cc & \ diff --git a/tests/url/test1.cpp b/tests/url/test1.cpp index 95db9fb..3dd6df2 100755 --- a/tests/url/test1.cpp +++ b/tests/url/test1.cpp @@ -41,9 +41,9 @@ int main( int argc, char *argv[] ) URLNormalizer *normalizer = urlNormalizers.create( method ); #else URLNormalizer *normalizer; - if( strcmp( method, "simple" ) == 0 ) { + if( strcmp( method, "simple_urlnormalizer" ) == 0 ) { normalizer = new SimpleURLNormalizer( ); - } else if( strcmp( method, "google" ) == 0 ) { + } else if( strcmp( method, "google_urlnormalizer" ) == 0 ) { normalizer = new GoogleURLNormalizer( ); } else { cerr << "Unknown normalization method '" << method << "'" << endl; |