File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 5
5
* the function longest_common_string_length computes the length
6
6
* of the longest common string which can be created of two input strings
7
7
* by removing characters from them
8
+ *
9
+ * @author [Nikhil Arora](https://github.com/nikhilarora068)
10
+ * @author [Piotr Idzik](https://github.com/vil02)
8
11
*/
9
12
10
- #include < cassert> // / for assert
11
- #include < string> // / for std::string
12
- #include < utility> // / for std::move
13
- #include < vector> // / for std::vector
13
+ #include < cassert> // / for assert
14
+ #include < string> // / for std::string
15
+ #include < utility> // / for std::move
16
+ #include < vector> // / for std::vector
17
+ #include < iostream> // / for IO operations
14
18
15
19
/* *
16
20
* @brief computes the length of the longest common string created from input
@@ -128,12 +132,14 @@ void test_longest_common_string_length_for_reversed_inputs(
128
132
/* *
129
133
* @brief runs all tests for longest_common_string_length funcion
130
134
*/
131
- void tests () {
135
+ static void tests () {
132
136
const auto test_cases = get_test_cases ();
133
137
assert (test_cases.size () > 0 );
134
138
test_longest_common_string_length (test_cases);
135
139
test_longest_common_string_length_is_symmetric (test_cases);
136
140
test_longest_common_string_length_for_reversed_inputs (test_cases);
141
+
142
+ std::cout << " All tests have successfully passed!\n " ;
137
143
}
138
144
139
145
int main () {
You can’t perform that action at this time.
0 commit comments