Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't use camel case for files that don't contain classes.

  • Loading branch information...
commit 547a9a38d7787f8894fd9fa4ee09c00d109522a0 1 parent 62d69ca
@fernandotcl authored
View
28 tests/CMakeLists.txt
@@ -1,10 +1,10 @@
include_directories(${Boost_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/src)
add_executable(
- EnglishTitleCapitalizationTest
- EnglishTitleCapitalization.cpp
- TitleCapitalizationBase.cpp
- TitleCapitalizationBase.h
+ english_titles_test
+ english_titles.cpp
+ titles_base.cpp
+ titles_base.h
${PROJECT_SOURCE_DIR}/src/BasicStringFilter.cpp
${PROJECT_SOURCE_DIR}/src/BasicStringFilter.h
${PROJECT_SOURCE_DIR}/src/CapitalizationFilter.h
@@ -15,16 +15,16 @@ add_executable(
${PROJECT_SOURCE_DIR}/src/TitleLocalizationHandler.cpp
${PROJECT_SOURCE_DIR}/src/TitleLocalizationHandler.h
)
-target_link_libraries(EnglishTitleCapitalizationTest ${Boost_LIBRARIES})
-add_test(EnglishTitleCapitalizationTest
- ${PROJECT_BINARY_DIR}/tests/EnglishTitleCapitalizationTest
+target_link_libraries(english_titles_test ${Boost_LIBRARIES})
+add_test(english_titles_test
+ ${PROJECT_BINARY_DIR}/tests/english_titles_test
${PROJECT_SOURCE_DIR}/tests/data/english_titles.txt)
add_executable(
- SpanishTitleCapitalizationTest
- SpanishTitleCapitalization.cpp
- TitleCapitalizationBase.cpp
- TitleCapitalizationBase.h
+ spanish_titles_test
+ spanish_titles.cpp
+ titles_base.cpp
+ titles_base.h
${PROJECT_SOURCE_DIR}/src/BasicStringFilter.cpp
${PROJECT_SOURCE_DIR}/src/BasicStringFilter.h
${PROJECT_SOURCE_DIR}/src/CapitalizationFilter.h
@@ -35,9 +35,9 @@ add_executable(
${PROJECT_SOURCE_DIR}/src/TitleLocalizationHandler.cpp
${PROJECT_SOURCE_DIR}/src/TitleLocalizationHandler.h
)
-target_link_libraries(SpanishTitleCapitalizationTest ${Boost_LIBRARIES})
-add_test(SpanishTitleCapitalizationTest
- ${PROJECT_BINARY_DIR}/tests/SpanishTitleCapitalizationTest
+target_link_libraries(spanish_titles_test ${Boost_LIBRARIES})
+add_test(spanish_titles_test
+ ${PROJECT_BINARY_DIR}/tests/spanish_titles_test
${PROJECT_SOURCE_DIR}/tests/data/spanish_titles.txt)
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
View
2  tests/EnglishTitleCapitalization.cpp → tests/english_titles.cpp
@@ -8,7 +8,7 @@
*/
#include "EnglishTitleLocalizationHandler.h"
-#include "TitleCapitalizationBase.h"
+#include "titles_base.h"
int main(int argc, char **argv)
{
View
2  tests/SpanishTitleCapitalization.cpp → tests/spanish_titles.cpp
@@ -8,7 +8,7 @@
*/
#include "SpanishTitleLocalizationHandler.h"
-#include "TitleCapitalizationBase.h"
+#include "titles_base.h"
int main(int argc, char **argv)
{
View
2  tests/TitleCapitalizationBase.cpp → tests/titles_base.cpp
@@ -12,7 +12,7 @@
#include <fstream>
#include <iostream>
-#include "TitleCapitalizationBase.h"
+#include "titles_base.h"
int run_title_capitalization_tests(TitleLocalizationHandler &handler, int argc, char **argv)
{
View
4 tests/TitleCapitalizationBase.h → tests/titles_base.h
@@ -7,8 +7,8 @@
*
*/
-#ifndef TITLE_CAPITALIZATION_BASE_H
-#define TITLE_CAPITALIZATION_BASE_H
+#ifndef TITLES_BASE_H
+#define TITLES_BASE_H
#include "TitleCapitalizationFilter.h"
Please sign in to comment.
Something went wrong with that request. Please try again.