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:
parent
c1224d9a7f
commit
1f836218f5
10 changed files with 15 additions and 23 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue