mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-11-27 21:36:19 +08:00
18 lines
370 B
C++
18 lines
370 B
C++
#include <gtest/gtest.h>
|
|
|
|
#include <cassert>
|
|
#include <rfl.hpp>
|
|
#include <rfl/json.hpp>
|
|
#include <string>
|
|
|
|
namespace test_box2 {
|
|
|
|
TEST(json, test_box2) {
|
|
auto ptr = std::make_unique<std::string>("Hello World!");
|
|
const rfl::Result<rfl::Box<std::string>> box =
|
|
rfl::make_box<std::string>(std::move(ptr));
|
|
|
|
ASSERT_TRUE(box && true);
|
|
}
|
|
} // namespace test_box2
|