Skip to content

Commit

Permalink
for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Nov 27, 2024
1 parent f58f206 commit 3b70db3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,16 @@ TEST_CASE("test parse item array_t") {
#if __has_include(<span>)
{
std::vector<int> v{1, 2};
std::span<int> span(v);
std::span<int> span(v.data(), v.data() + 2);
std::string str;
iguana::to_json(span, str);

std::vector<int> v1;
v1.resize(2);
std::span<int> span1(v1);
std::span<int> span1(v1.data(), v1.data() + 2);

iguana::from_json(span1, str);
CHECK(v == v1);
assert(v == v1);
}
#endif
#endif
Expand Down

0 comments on commit 3b70db3

Please sign in to comment.