Skip to content

Commit

Permalink
[test] fixed a couple of test failures due to API changes and bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
harrand committed Nov 13, 2024
1 parent b6bc25b commit fe2c476
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/tz/gpu_graphics_renderer_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ int tz_main()
}));

tz::gpu::graph_handle graph = tz_must(tz::gpu::graph_builder{}
.set_flags(tz::gpu::graph_flag::present_after)
.add_pass(pass)
.add_pass(tz::gpu::present_pass)
.build());

for(std::size_t i = 0; i < 64; i++)
Expand Down
2 changes: 1 addition & 1 deletion test/tz/matrix_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void test_matrix_constructor()
auto iden_matrix = matrix_t::iden();
matrix_t expected_identity = matrix_t::zero();
for (std::size_t i = 0; i < N; ++i)
expected_identity[i * N] = T{1}; // Diagonal elements = 1
expected_identity[i * N + i] = T{1}; // Diagonal elements = 1
tz_assert(iden_matrix == expected_identity, "iden() failed. Expected identity matrix");
}

Expand Down

0 comments on commit fe2c476

Please sign in to comment.