1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-10-02 15:00:02 +00:00

Don't use dhandy::lexical_cast anymore.

This commit is contained in:
King_DuckZ 2018-10-13 14:49:55 +01:00
commit 1f836218f5
10 changed files with 15 additions and 23 deletions

View file

@ -25,9 +25,9 @@
#include "cgi_env.hpp"
#include "cgi_post.hpp"
#include "fake_storage.hpp"
#include "duckhandy/int_conv.hpp"
#include <spdlog/spdlog.h>
#include <sstream>
#include <boost/lexical_cast.hpp>
namespace kamokan {
class SubmitPasteResponseWithFakeStorage : public SubmitPasteResponse {
@ -143,7 +143,7 @@ TEST_CASE ("Submit paste response", "[submitpaste][response]") {
CHECK(submitted_pastie.remote_ip == "127.0.0.1");
#endif
CHECK(submitted_pastie.token == "b");
CHECK(submitted_pastie.expiry == boost::lexical_cast<uint32_t>(original_expiry));
CHECK(submitted_pastie.expiry == dhandy::int_conv<uint32_t>(original_expiry));
{
std::string output = oss.str();