Put everything into a new 'const_fmt' namespace; Renamed namespace detail to const_fmt_detail
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
|
||||
using namespace detail;
|
||||
using namespace const_fmt;
|
||||
using namespace const_fmt::const_fmt_detail;
|
||||
|
||||
|
||||
TEST(Format, positive_int) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <const_fmt/parse.h>
|
||||
|
||||
|
||||
using namespace detail;
|
||||
using namespace const_fmt::const_fmt_detail;
|
||||
|
||||
|
||||
TEST(Parse, parse_number) {
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
#include <const_fmt/utility.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
using namespace const_fmt;
|
||||
|
||||
TEST(Utility, const_pow) {
|
||||
EXPECT_EQ(detail::const_pow(10, 0), 1);
|
||||
EXPECT_EQ(detail::const_pow(0, 1), 0);
|
||||
EXPECT_EQ(detail::const_pow(2, 8), 0b1'0000'0000);
|
||||
EXPECT_EQ(const_fmt_detail::const_pow(10, 0), 1);
|
||||
EXPECT_EQ(const_fmt_detail::const_pow(0, 1), 0);
|
||||
EXPECT_EQ(const_fmt_detail::const_pow(2, 8), 0b1'0000'0000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user