-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[requires] | ||
drogon/1.9.8 | ||
boost/1.86.0 | ||
catch2/3.7.1 | ||
doctest/2.4.11 | ||
cpputest/4.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// TODO: fix transitive dependencies in | ||
// https://conan.io/center/recipes/drogon?version=1.9.8 when with_boost=False | ||
#define BOOST_TEST_UNIT_TEST_SUITE_IPP_012205GER | ||
#define BOOST_TEST_UNIT_TEST_PARAMETERS_IPP_012205GER | ||
|
||
#define BOOST_TEST_MODULE basic_responses | ||
#include <boost/test/included/unit_test.hpp> | ||
|
||
#include "customer/responder.h" | ||
|
||
BOOST_AUTO_TEST_CASE(given_name_when_prepare_responses_then_greets_friendly) { | ||
const auto name = "Bob"; | ||
const auto [status, value] = responder{}.prepare_response(name); | ||
BOOST_CHECK_EQUAL(status, drogon::k200OK); | ||
BOOST_CHECK_EQUAL(value, "Hello, Bob!"); | ||
} |