Skip to content

Commit

Permalink
Fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Oct 17, 2023
1 parent 278f4b7 commit 56df10d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/cpp/common/test_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ TEST(IO, Resource) {
fout << 1.0 << std::endl;
fout.close();

auto resource = std::make_shared<MmapResource>(path, 0, sizeof(double));
auto resource = std::shared_ptr<MmapResource>{
new MMapResource{path, 0, sizeof(double)}};
ASSERT_EQ(resource->Size(), sizeof(double));
ASSERT_EQ(resource->Type(), ResourceHandler::kMmap);
ASSERT_EQ(resource->DataAs<double>()[0], val);
Expand Down

0 comments on commit 56df10d

Please sign in to comment.