Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
saprykin committed Mar 17, 2024
2 parents d23c0c5 + 5148b06 commit 3b35c36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
cd ../plibsys-build
ctest
- name: coverage-install
if: ${{ success() && matrix.USE_COV == '1' && !github.event.issue.number }}
if: ${{ success() && matrix.USE_COV == '1' && !github.event.issue.pull_request }}
run: |
pwd
if [ "$RUNNER_OS" == "Linux" ]; then
Expand All @@ -62,7 +62,7 @@ jobs:
fi
pip install codecov-cli
- name: coverage-run
if: ${{ success() && matrix.USE_COV == '1' && !github.event.issue.number }}
if: ${{ success() && matrix.USE_COV == '1' && !github.event.issue.pull_request }}
run: |
pwd
codecovcli create-commit -t ${{ secrets.CODECOV_TOKEN }}
Expand Down
16 changes: 8 additions & 8 deletions tests/phashtable_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ P_TEST_CASE_BEGIN (phashtable_general_test)
P_TEST_REQUIRE (list != NULL);
P_TEST_REQUIRE (p_list_length (list) == 3);
P_TEST_REQUIRE (PPOINTER_TO_INT (list->data) +
PPOINTER_TO_INT (list->next->data) +
PPOINTER_TO_INT (list->next->next->data) == 65);
PPOINTER_TO_INT (list->next->data) +
PPOINTER_TO_INT (list->next->next->data) == 65);
p_list_free (list);
list = p_hash_table_keys (table);
P_TEST_REQUIRE (list != NULL);
P_TEST_REQUIRE (p_list_length (list) == 3);
P_TEST_REQUIRE (PPOINTER_TO_INT (list->data) +
PPOINTER_TO_INT (list->next->data) +
PPOINTER_TO_INT (list->next->next->data) == 6);
PPOINTER_TO_INT (list->next->data) +
PPOINTER_TO_INT (list->next->next->data) == 6);
p_list_free (list);

P_TEST_CHECK (PPOINTER_TO_INT (p_hash_table_lookup (table, PINT_TO_POINTER (1))) == 15);
Expand All @@ -192,8 +192,8 @@ P_TEST_CASE_BEGIN (phashtable_general_test)
P_TEST_REQUIRE (list != NULL);
P_TEST_REQUIRE (p_list_length (list) == 3);
P_TEST_REQUIRE (PPOINTER_TO_INT (list->data) +
PPOINTER_TO_INT (list->next->data) +
PPOINTER_TO_INT (list->next->next->data) == 27);
PPOINTER_TO_INT (list->next->data) +
PPOINTER_TO_INT (list->next->next->data) == 27);
p_list_free (list);

list = p_hash_table_lookup_by_value (table,
Expand All @@ -202,7 +202,7 @@ P_TEST_CASE_BEGIN (phashtable_general_test)
P_TEST_REQUIRE (list != NULL);
P_TEST_REQUIRE (p_list_length (list) == 2);
P_TEST_REQUIRE (PPOINTER_TO_INT (list->data) +
PPOINTER_TO_INT (list->next->data) == 24);
PPOINTER_TO_INT (list->next->data) == 24);
p_list_free (list);

P_TEST_REQUIRE (PPOINTER_TO_INT (p_hash_table_lookup (table, PINT_TO_POINTER (22))) == 20);
Expand Down Expand Up @@ -273,7 +273,7 @@ P_TEST_CASE_BEGIN (phashtable_stress_test)

for (int i = 0; i < PHASHTABLE_STRESS_COUNT; ++i) {
P_TEST_CHECK (p_hash_table_lookup (table, PINT_TO_POINTER (keys[i])) ==
PINT_TO_POINTER (values[i]));
PINT_TO_POINTER (values[i]));

p_hash_table_remove (table, PINT_TO_POINTER (keys[i]));
P_TEST_CHECK (p_hash_table_lookup (table, PINT_TO_POINTER (keys[i])) == (ppointer) (-1));
Expand Down

0 comments on commit 3b35c36

Please sign in to comment.