Skip to content

Commit

Permalink
capitalize the names
Browse files Browse the repository at this point in the history
  • Loading branch information
wx-csy committed Feb 15, 2017
1 parent ae3c9f3 commit 2edc8b6
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 42 deletions.
31 changes: 3 additions & 28 deletions main.cpp
Expand Up @@ -47,10 +47,6 @@ int main(int argc, char* argv[]){
v.push_back(distribution(generator));
}

testSuit::initDefaultTests();
testSuit::runTest(v);

return 0;

} else {
fstream f(argv[1]);
Expand All @@ -65,30 +61,9 @@ int main(int argc, char* argv[]){
}
}

test::monobit_frequency_test(v);
test::frequency_test_within_a_block(v, 100);
test::poker_test(v, 4);
test::poker_test(v, 8);
test::serial_test(v, 2);
test::serial_test2(v);
test::serial_test(v, 5);
test::serial_test2(v);
test::runs_test(v);
test::runs_distribution_test(v);
test::test_for_the_longest_run_of_ones_in_a_block(v, 10000);
test::binary_derivative_test(v, 3);
test::binary_derivative_test(v, 7);
test::autocorrelation_test(v, 1);
test::autocorrelation_test(v, 2);
test::autocorrelation_test(v, 8);
test::autocorrelation_test(v, 16);
test::binary_matrix_rank_test(v, 32, 32);
test::cumulative_test(v);
test::approximate_entropy_test(v, 2);
test::approximate_entropy_test(v, 5);
test::linear_complexity_test(v, 500);
test::Maurers_universal_test(v, 7, 1280);
test::Discrete_Fourier_Transform_test(v);
testSuit::initDefaultTests();
testSuit::runTest(v);

return 0;
}

2 changes: 1 addition & 1 deletion test/approximate_entropy_test.cpp
Expand Up @@ -106,7 +106,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"approximate entropy test"};
char* names[1] = {"Approximate entropy test"};
return names[lang];
}

Expand Down
2 changes: 1 addition & 1 deletion test/autocorrelation_test.cpp
Expand Up @@ -34,7 +34,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"autocorrelation test"};
char* names[1] = {"Autocorrelation test"};
return names[lang];
}

Expand Down
2 changes: 1 addition & 1 deletion test/binary_derivative_test.cpp
Expand Up @@ -40,7 +40,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"binary derivative test"};
char* names[1] = {"Binary derivative test"};
return names[lang];
}

Expand Down
2 changes: 1 addition & 1 deletion test/binary_matrix_rank_test.cpp
Expand Up @@ -61,7 +61,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"binary matrix rank test"};
char* names[1] = {"Binary matrix rank test"};
return names[lang];
}

Expand Down
2 changes: 1 addition & 1 deletion test/cumulative_test.cpp
Expand Up @@ -36,7 +36,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"cumulative test"};
char* names[1] = {"Cumulative test"};
return names[lang];
}

Expand Down
2 changes: 1 addition & 1 deletion test/frequency_test_within_a_block.cpp
Expand Up @@ -46,7 +46,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"frequency test within a block"};
char* names[1] = {"Frequency test within a block"};
return names[lang];
}

Expand Down
2 changes: 1 addition & 1 deletion test/linear_complexity_test.cpp
Expand Up @@ -65,7 +65,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"linear complexity test"};
char* names[1] = {"Linear complexity test"};
return names[lang];
}

Expand Down
2 changes: 1 addition & 1 deletion test/monobit_frequency_test.cpp
Expand Up @@ -29,7 +29,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"monobit frequency test"};
char* names[1] = {"Monobit frequency test"};
return names[lang];
}

Expand Down
2 changes: 1 addition & 1 deletion test/poker_test.cpp
Expand Up @@ -53,7 +53,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"poker test"};
char* names[1] = {"Poker test"};
return names[lang];
}

Expand Down
2 changes: 1 addition & 1 deletion test/runs_distribution_test.cpp
Expand Up @@ -59,7 +59,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"runs distribution test"};
char* names[1] = {"Runs distribution test"};
return names[lang];
}

Expand Down
2 changes: 1 addition & 1 deletion test/runs_test.cpp
Expand Up @@ -37,7 +37,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"runs test"};
char* names[1] = {"Runs test"};
return names[lang];
}

Expand Down
4 changes: 2 additions & 2 deletions test/serial_test.cpp
Expand Up @@ -93,7 +93,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"serial test (1)"};
char* names[1] = {"Serial test (1)"};
return names[lang];
}

Expand All @@ -111,7 +111,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"serial test (2)"};
char* names[1] = {"Serial test (2)"};
return names[lang];
}

Expand Down
2 changes: 1 addition & 1 deletion test/test_for_the_longest_run_of_ones_in_a_block.cpp
Expand Up @@ -59,7 +59,7 @@ namespace test{
}

const char* testName(int lang = 0){
char* names[1] = {"test for the longest run of ones in a block"};
char* names[1] = {"Test for the longest run of ones in a block"};
return names[lang];
}

Expand Down

0 comments on commit 2edc8b6

Please sign in to comment.