Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

replaceTokens() tests #3074

Merged
merged 2 commits into from
Nov 19, 2015
Merged

replaceTokens() tests #3074

merged 2 commits into from
Nov 19, 2015

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Nov 19, 2015

Ported replaceTokens() tests from GL JS in anticipation of a forthcoming PR implementing mapbox/mapbox-gl-style-spec#104.

/cc @jfirebaugh

@1ec5 1ec5 added GL JS parity For feature parity with Mapbox GL JS tests labels Nov 19, 2015
@1ec5 1ec5 self-assigned this Nov 19, 2015
@jfirebaugh
Copy link
Contributor

s/std::string &token/std::string& token/g

if (token == "c") return "Fields";
return "";
}));
EXPECT_EQ(" but still", mbgl::util::replaceTokens("{notset} but still", [](__unused const std::string &token) -> std::string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linux build is failing on __unused -- omit the parameter name instead.

@1ec5
Copy link
Contributor Author

1ec5 commented Nov 19, 2015

Fixed in dc5a55c.

@1ec5 1ec5 merged commit dc5a55c into master Nov 19, 2015
@1ec5 1ec5 removed the in progress label Nov 19, 2015
@1ec5 1ec5 deleted the 1ec5-token-tests branch November 19, 2015 23:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
GL JS parity For feature parity with Mapbox GL JS tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants