Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterize formatter::format to use with FMT_COMPILE #365

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

ArtfulVampire
Copy link
Contributor

fmtlib/fmt#4059 (comment)

tested by adding fmt library into make_test and running the case

TEST_CASE("format-fmt") {
  REQUIRE(fmt::format("{}", Color::RED) == "red");
  REQUIRE(fmt::format("{}", Color{0}) == "0");

  REQUIRE(fmt::format(FMT_STRING("{}"), Color::RED) == "red");
  REQUIRE(fmt::format(FMT_STRING("{}"), Color{0}) == "0");

  REQUIRE(fmt::format(FMT_COMPILE("{}"), Color::RED) == "red");
  REQUIRE(fmt::format(FMT_COMPILE("{}"), Color{0}) == "0");
}

@ArtfulVampire ArtfulVampire marked this pull request as ready for review July 8, 2024 15:26
@Neargye
Copy link
Owner

Neargye commented Jul 8, 2024

Thanks!

@Neargye Neargye merged commit 664ee62 into Neargye:master Jul 8, 2024
18 checks passed
@Neargye Neargye added this to the v0.9.7 milestone Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants