1 // Copyright 2015, Tobias Hermann and the FunctionalPlus contributors. 2 // https://github.com/Dobiasd/FunctionalPlus 3 // Distributed under the Boost Software License, Version 1.0. 4 // (See accompanying file LICENSE_1_0.txt or copy at 5 // http://www.boost.org/LICENSE_1_0.txt) 6 7 #include <doctest/doctest.h> 8 #include <fplus/fplus.hpp> 9 10 TEST_CASE("curry_test - show_fill_left") 11 { 12 using namespace fplus; 13 REQUIRE_EQ(show_fill_left<int>(' ', 4, 3), " 3"); 14 const auto result_old_style = show_fill_left<int>(' ', 4, 3); 15 const auto result_new_style = curry::show_fill_left(' ')(std::size_t(4))(3); 16 REQUIRE_EQ(result_old_style, result_new_style); 17 } 18