Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Sep 20, 2023
1 parent 1506715 commit f11adcf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/struct_pack/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ load("@rules_cc//cc:defs.bzl", "cc_test")

cc_test(
name = "test_serialize",
srcs = glob(["*.cpp"]) + ["test_struct.hpp"],
srcs = glob(["*.cpp"]) + ["test_struct.hpp"]+["test_derived.hpp"],
copts = ["-std=c++20"],
defines = ["STRUCT_PACK_ENABLE_UNPORTABLE_TYPE"],
deps = [
Expand Down
4 changes: 1 addition & 3 deletions src/struct_pack/tests/test_derived.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "test_derived.h"
#include "test_derived.hpp"
namespace test1 {
struct Base {
int id = 17;
Expand Down Expand Up @@ -120,7 +120,6 @@ TEST_CASE("test hash collision") {
0);
}


TEST_CASE("test unique_ptr<Base>") {
using namespace test2;
static_assert(struct_pack::detail::is_base_class<base>);
Expand All @@ -141,7 +140,6 @@ TEST_CASE("test unique_ptr<Base>") {
}
}


TEST_CASE("test unique_ptr<Base> with virtual base") {
using namespace test3;
static_assert(struct_pack::detail::is_base_class<base>);
Expand Down
File renamed without changes.

0 comments on commit f11adcf

Please sign in to comment.