commit | 38610ae1507e66e29703cc36fb78d6dbcdcfeb62 | [log] [tgz] |
---|---|---|
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Tue Apr 10 20:39:24 2018 +0200 |
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Mon May 21 11:35:02 2018 +0200 |
tree | 0ccf712d9531a045f802de7dbc4f13f97f99c6c0 | |
parent | 3314730208e15eead58b9d9c7cfbe1161f02f704 [diff] [blame] |
Modularize the source code. This makes greeting generation separate from greeting output, which makes it easier to unit-test greeting generation. Change-Id: Ice07f45ed0e9274bd4d4b3cd031cb37fffd34a5e
diff --git a/mod/greeting.hpp b/mod/greeting.hpp new file mode 100644 index 0000000..c9d1a3d --- /dev/null +++ b/mod/greeting.hpp
@@ -0,0 +1,9 @@ +#pragma once + +#include <string> + +namespace greeting { + +std::string make_greeting(std::string const& greetee); + +}