[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master de5a5c7 151/156: Fix interpolate_string_test
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master de5a5c7 151/156: Fix interpolate_string_test build |
Date: |
Tue, 30 Jan 2018 17:22:35 -0500 (EST) |
branch: master
commit de5a5c750464a9a1563e0c6f623eb16c4481868c
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>
Fix interpolate_string_test build
The test was broken by typos in 4e76bba3c4fa640368fc70fe745d0e657b8a69c0
and also triggered a couple of harmless -Wshadow gcc warnings.
---
interpolate_string_test.cpp | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/interpolate_string_test.cpp b/interpolate_string_test.cpp
index a1813bd..2cf81be 100644
--- a/interpolate_string_test.cpp
+++ b/interpolate_string_test.cpp
@@ -45,15 +45,15 @@ int test_main(int, char*[])
BOOST_TEST_EQUAL( test_interpolate("{{foo}}{{bar}}"), "foobar" );
// Comments should be just ignored.
- BOOST_TEST_EQUAL( test_interpolate("{{! ignore me}}", "" );
- BOOST_TEST_EQUAL( test_interpolate("{{! too}}{{x}}", "x" );
- BOOST_TEST_EQUAL( test_interpolate("{{x}}{{!also}}", "x" );
+ BOOST_TEST_EQUAL( test_interpolate("{{! ignore me}}"), "" );
+ BOOST_TEST_EQUAL( test_interpolate("{{! too}}{{x}}"), "x" );
+ BOOST_TEST_EQUAL( test_interpolate("{{x}}{{!also}}"), "x" );
// Sections.
- auto const section_test = [](char const* s)
+ auto const section_test = [](char const* str)
{
return interpolate_string
- (s
+ (str
,[](std::string const& s, interpolate_lookup_kind) -> std::string
{
if(s == "var0") return "0";
@@ -88,10 +88,10 @@ int test_main(int, char*[])
);
// Partials.
- auto const partial_test = [](char const* s)
+ auto const partial_test = [](char const* str)
{
return interpolate_string
- (s
+ (str
,[](std::string const& s, interpolate_lookup_kind) -> std::string
{
if(s == "header") return "[header with {{var}}]";
- [lmi-commits] [lmi] master 01be23a 103/156: Automatically squeeze table columns to make them fit if necessary, (continued)
- [lmi-commits] [lmi] master 01be23a 103/156: Automatically squeeze table columns to make them fit if necessary, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 46a7442 068/156: Factor out helper render_template() method, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master d77620f 100/156: Factor out dollar_units template from the existing ones, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 833eef5 086/156: Use std::make_unique<> instead of raw "new", Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 34c088c 073/156: Move footer contents into an external template too, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 0ba1c32 146/156: Consistently use "curr" as abbreviation of "current", Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 29865fc 133/156: Add supplemental report to NASD illustrations too, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 919d796 001/156: Remove old XSL-FO-based PDF generation code, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master cc7fc05 143/156: Change template file extension from .mustache to .mst, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 08984bb 148/156: Recognize Mustache files in the coding rules test, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master de5a5c7 151/156: Fix interpolate_string_test build,
Greg Chicares <=
- [lmi-commits] [lmi] master bb5693e 136/156: Harmonize spacing in header in reg_d_group illustrations too, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 0c85a7a 154/156: Avoid using directive for the "html" namespace, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 463e8ca 138/156: Fix bug with page numbers in subsequent illustrations, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 830e1fd 130/156: Manually break column titles into lines, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 43859a6 053/156: Add support for "measure only" output mode to wx_table_generator, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 772f4a4 139/156: Refactor: use get_fixed_page_contents_template_name(), Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 81ccdc8 129/156: Remove the never used elements of the columns title map, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 2478fbc 010/156: Start implementing PDF illustrations directly, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 9d24cd9 024/156: Compilation fix for C++11 but not C++14 compilers, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 1229745 020/156: Make add_body_paragraph() even more convenient to use, Greg Chicares, 2018/01/30