Skip to content

Commit

Permalink
Another misoptimization?
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed Jun 28, 2023
1 parent 6de85cc commit d9480dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*.dSYM/

# CMake build directory
build/
*build/
cmake-build-*/
build-avr/

Expand Down
1 change: 1 addition & 0 deletions tests/.idea/dictionaries/pavel.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function(gen_test name files compile_definitions compile_flags link_flags c_stan
C_STANDARD "${c_standard}"
C_EXTENSIONS OFF
)
add_test("run_${name}" "${name}" --rng-seed time)
add_test("run_${name}" "${name}" --gtest_random_seed=0 --gtest_color=yes)
endfunction()

function(gen_test_matrix name files compile_definitions compile_flags link_flags)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_private_cavl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,9 @@ TEST(Cavl, RemovalA)
// 1 3 7
std::puts("REMOVE 4:");
remove(&root, &t[4]);
ASSERT_TRUE(&t[5] == root);
print(root);
print(&t[5]);
ASSERT_TRUE(&t[5] == root);
ASSERT_TRUE(nullptr == findBrokenBalanceFactor(root));
ASSERT_TRUE(nullptr == findBrokenAncestry(root));
ASSERT_TRUE(6 == checkAscension(root));
Expand Down

0 comments on commit d9480dd

Please sign in to comment.