Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
barne856 committed Jul 18, 2024
1 parent 3c5d881 commit f99af5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tensor_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ TEST_CASE("Fixed Tensor Creation and Basic Operations") {
}

SUBCASE("Constructor with value") {
fixed_tensor<int, layout::row_major, error_checking::disabled, 2, 3> t{3};
fixed_tensor<int, layout::row_major, error_checking::disabled, 2, 3> t(3);
CHECK(t[0, 0] == 3);
CHECK(t[0, 1] == 3);
CHECK(t[0, 2] == 3);
Expand Down Expand Up @@ -563,7 +563,7 @@ TEST_CASE("Tensor View Edge Cases") {
}

SUBCASE("Fixed tensor view with single element") {
fixed_tensor<int, layout::row_major, error_checking::disabled, 1, 1> t{{42}};
fixed_tensor<int, layout::row_major, error_checking::disabled, 1, 1> t{42};
auto view = t.view();
CHECK(view.size() == 1);
CHECK(view[0, 0] == 42);
Expand Down

0 comments on commit f99af5e

Please sign in to comment.