From 895fbb7cbdde070e94929bef83034c76161de9ef Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Mon, 29 Jul 2024 14:55:16 +0200 Subject: [PATCH] Add test files --- .../exercises/echo-function/solution/correct.cpp | 15 +++++++++++++++ tests/exercises/global/solution/correct.cpp | 1 + 2 files changed, 16 insertions(+) create mode 100644 tests/exercises/echo-function/solution/correct.cpp create mode 100644 tests/exercises/global/solution/correct.cpp 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"