From 6c4537885e89f69b9368251759f75127e6dcc4d6 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 25 Jun 2022 08:29:07 -0400 Subject: Reformat code --- libtests/pl_function.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'libtests') diff --git a/libtests/pl_function.cc b/libtests/pl_function.cc index 960ad5cb..101ec02e 100644 --- a/libtests/pl_function.cc +++ b/libtests/pl_function.cc @@ -1,26 +1,24 @@ #include +#include #include #include -#include #include int main(int argc, char* argv[]) { - Pl_Function p1( - "p1", nullptr, [](unsigned char const* data, size_t len) { - std::cout << "p1: " << len << ": " << data << std::endl; - }); + Pl_Function p1("p1", nullptr, [](unsigned char const* data, size_t len) { + std::cout << "p1: " << len << ": " << data << std::endl; + }); p1.write(reinterpret_cast("potato"), 6); std::string s; Pl_String ps("string", nullptr, s); Pl_Base64 b("base64", &ps, Pl_Base64::a_encode); - Pl_Function p2( - "p2", &b, [](unsigned char const* data, size_t len) { - std::cout << "p2: " << len << ": " << data << std::endl; - }); + Pl_Function p2("p2", &b, [](unsigned char const* data, size_t len) { + std::cout << "p2: " << len << ": " << data << std::endl; + }); p2.write(reinterpret_cast("salad"), 5); p2.finish(); assert(s == "c2FsYWQ="); -- cgit v1.2.3-54-g00ecf