Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 547a9a38d7787f8894fd9fa4ee09c00d109522a0 1 parent 62d69ca
Fernando Lemos authored February 29, 2012
28  tests/CMakeLists.txt
... ...
@@ -1,10 +1,10 @@
1 1
 include_directories(${Boost_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/src)
2 2
 
3 3
 add_executable(
4  
-    EnglishTitleCapitalizationTest
5  
-    EnglishTitleCapitalization.cpp
6  
-    TitleCapitalizationBase.cpp
7  
-    TitleCapitalizationBase.h
  4
+    english_titles_test
  5
+    english_titles.cpp
  6
+    titles_base.cpp
  7
+    titles_base.h
8 8
     ${PROJECT_SOURCE_DIR}/src/BasicStringFilter.cpp
9 9
     ${PROJECT_SOURCE_DIR}/src/BasicStringFilter.h
10 10
     ${PROJECT_SOURCE_DIR}/src/CapitalizationFilter.h
@@ -15,16 +15,16 @@ add_executable(
15 15
     ${PROJECT_SOURCE_DIR}/src/TitleLocalizationHandler.cpp
16 16
     ${PROJECT_SOURCE_DIR}/src/TitleLocalizationHandler.h
17 17
 )
18  
-target_link_libraries(EnglishTitleCapitalizationTest ${Boost_LIBRARIES})
19  
-add_test(EnglishTitleCapitalizationTest
20  
-    ${PROJECT_BINARY_DIR}/tests/EnglishTitleCapitalizationTest
  18
+target_link_libraries(english_titles_test ${Boost_LIBRARIES})
  19
+add_test(english_titles_test
  20
+    ${PROJECT_BINARY_DIR}/tests/english_titles_test
21 21
     ${PROJECT_SOURCE_DIR}/tests/data/english_titles.txt)
22 22
 
23 23
 add_executable(
24  
-    SpanishTitleCapitalizationTest
25  
-    SpanishTitleCapitalization.cpp
26  
-    TitleCapitalizationBase.cpp
27  
-    TitleCapitalizationBase.h
  24
+    spanish_titles_test
  25
+    spanish_titles.cpp
  26
+    titles_base.cpp
  27
+    titles_base.h
28 28
     ${PROJECT_SOURCE_DIR}/src/BasicStringFilter.cpp
29 29
     ${PROJECT_SOURCE_DIR}/src/BasicStringFilter.h
30 30
     ${PROJECT_SOURCE_DIR}/src/CapitalizationFilter.h
@@ -35,9 +35,9 @@ add_executable(
35 35
     ${PROJECT_SOURCE_DIR}/src/TitleLocalizationHandler.cpp
36 36
     ${PROJECT_SOURCE_DIR}/src/TitleLocalizationHandler.h
37 37
 )
38  
-target_link_libraries(SpanishTitleCapitalizationTest ${Boost_LIBRARIES})
39  
-add_test(SpanishTitleCapitalizationTest
40  
-    ${PROJECT_BINARY_DIR}/tests/SpanishTitleCapitalizationTest
  38
+target_link_libraries(spanish_titles_test ${Boost_LIBRARIES})
  39
+add_test(spanish_titles_test
  40
+    ${PROJECT_BINARY_DIR}/tests/spanish_titles_test
41 41
     ${PROJECT_SOURCE_DIR}/tests/data/spanish_titles.txt)
42 42
 
43 43
 add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
2  tests/EnglishTitleCapitalization.cpp → tests/english_titles.cpp
@@ -8,7 +8,7 @@
8 8
  */
9 9
 
10 10
 #include "EnglishTitleLocalizationHandler.h"
11  
-#include "TitleCapitalizationBase.h"
  11
+#include "titles_base.h"
12 12
 
13 13
 int main(int argc, char **argv)
14 14
 {
2  tests/SpanishTitleCapitalization.cpp → tests/spanish_titles.cpp
@@ -8,7 +8,7 @@
8 8
  */
9 9
 
10 10
 #include "SpanishTitleLocalizationHandler.h"
11  
-#include "TitleCapitalizationBase.h"
  11
+#include "titles_base.h"
12 12
 
13 13
 int main(int argc, char **argv)
14 14
 {
2  tests/TitleCapitalizationBase.cpp → tests/titles_base.cpp
@@ -12,7 +12,7 @@
12 12
 #include <fstream>
13 13
 #include <iostream>
14 14
 
15  
-#include "TitleCapitalizationBase.h"
  15
+#include "titles_base.h"
16 16
 
17 17
 int run_title_capitalization_tests(TitleLocalizationHandler &handler, int argc, char **argv)
18 18
 {
4  tests/TitleCapitalizationBase.h → tests/titles_base.h
@@ -7,8 +7,8 @@
7 7
  *
8 8
  */
9 9
 
10  
-#ifndef TITLE_CAPITALIZATION_BASE_H
11  
-#define TITLE_CAPITALIZATION_BASE_H
  10
+#ifndef TITLES_BASE_H
  11
+#define TITLES_BASE_H
12 12
 
13 13
 #include "TitleCapitalizationFilter.h"
14 14
 

0 notes on commit 547a9a3

Please sign in to comment.
Something went wrong with that request. Please try again.