Skip to content

Commit

Permalink
add sandboxed version of fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Nov 12, 2020
1 parent 125519d commit d8a3ed3
Show file tree
Hide file tree
Showing 32 changed files with 13,240 additions and 9,315 deletions.
2 changes: 1 addition & 1 deletion src/cmake/Setup3rdParty.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ include_directories(thirdparty_builtin/civetweb-0a95342/include)
################################
# Setup includes for fmt
################################
include_directories(thirdparty_builtin/fmt-5.0.3/)
include_directories(thirdparty_builtin/fmt-7.1.0/)


################################
Expand Down
12 changes: 9 additions & 3 deletions src/tests/thirdparty/t_fmt_smoke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@
#include <iostream>
#include "gtest/gtest.h"

#include "fmt/conduit_fmt.h"
#include "conduit_fmt/conduit_fmt.h"

TEST(libb64_smoke, basic_use )
TEST(fmt_smoke, basic_use )
{
std::string res = fmt::format("The answer is {}.", 42);
std::string res = conduit_fmt::format("The answer is {}.", 42);
std::cout << res << std::endl;
EXPECT_EQ(res, "The answer is 42.");

res = conduit_fmt::format("The answer is {answer:0.2f}.",
conduit_fmt::arg("answer",3.14));
std::cout << res << std::endl;
EXPECT_EQ(res, "The answer is 3.14.");
}
10 changes: 0 additions & 10 deletions src/thirdparty_builtin/fmt-5.0.3/conduit_readme.txt

This file was deleted.

0 comments on commit d8a3ed3

Please sign in to comment.