Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Dec 2, 2024
1 parent 262e238 commit a610693
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/glaze/concepts/container_concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ namespace glz
requires !std::same_as<void, decltype(t.end())>;
requires std::input_iterator<decltype(t.begin())>;
};

template <class T>
concept matrix_t = requires(T matrix) {
matrix.resize(2, 4);
Expand Down
6 changes: 3 additions & 3 deletions tests/eigen_test/eigen_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ using namespace ut;

struct test_struct
{
Eigen::Matrix3d d = Eigen::Matrix3d::Identity();
Eigen::Matrix3d d = Eigen::Matrix3d::Identity();
} test_value;

suite matrix3d = [] {
"eigen Matrix3d"_test = [] {
auto result = glz::write_json(test_value.d).value();
expect(result == "[1,0,0,0,1,0,0,0,1]") << result;

static_assert(glz::reflect<test_struct>::size == 1);
static_assert(glz::reflect<test_struct>::keys[0] == "d");

result = glz::write_json(test_value).value();
expect(result == R"({"d":[1,0,0,0,1,0,0,0,1]})") << result;
};
Expand Down

0 comments on commit a610693

Please sign in to comment.