diff --git a/tests/exercises/echo-function/solution/correct.cpp b/tests/exercises/echo-function/solution/correct.cpp new file mode 100644 index 00000000..bec305d0 --- /dev/null +++ b/tests/exercises/echo-function/solution/correct.cpp @@ -0,0 +1,15 @@ +#include + +std::string echo(std::string content) { + return content; +} + + +void no_echo(std::string content) { + // Do nothing. +} + + +std::string to_string(int number) { + return std::to_string(number); +} diff --git a/tests/exercises/global/solution/correct.cpp b/tests/exercises/global/solution/correct.cpp new file mode 100644 index 00000000..a6eb6119 --- /dev/null +++ b/tests/exercises/global/solution/correct.cpp @@ -0,0 +1 @@ +#define GLOBAL_VAR "GLOBAL"