Skip to content

Commit

Permalink
Add test files
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Jul 29, 2024
1 parent 5bd19b3 commit 895fbb7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/exercises/echo-function/solution/correct.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <string>

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);
}
1 change: 1 addition & 0 deletions tests/exercises/global/solution/correct.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define GLOBAL_VAR "GLOBAL"

0 comments on commit 895fbb7

Please sign in to comment.