Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ISC_144 - B+ Tree Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
florian.burgener
ISC_144 - B+ Tree Project
Commits
15d3386f
Commit
15d3386f
authored
2 years ago
by
Florian Burgener
Browse files
Options
Downloads
Patches
Plain Diff
Change comments
parent
412ba274
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tests/BPTreeTests.c
+3
-3
3 additions, 3 deletions
src/tests/BPTreeTests.c
with
3 additions
and
3 deletions
src/tests/BPTreeTests.c
+
3
−
3
View file @
15d3386f
...
...
@@ -314,7 +314,7 @@ static void test_BPTree_insert_should_comply_with_BPTree_rules_using_BPTree_of_g
for
(
int
i
=
0
;
i
<
keys
->
size
;
i
++
)
{
BPTree_insert
(
root
,
keys
->
items
[
i
],
transform_key_to_data
(
keys
->
items
[
i
]));
// After each insertion,
we
check that the B+ tree
is compliant with
the B+
T
ree
rules
.
// After each insertion,
is
check
ed
that the B+ tree
conforms to the rules of
the B+
t
ree.
TEST_ASSERT
(
check_BPTree_compliance
(
root
));
}
...
...
@@ -376,7 +376,7 @@ void test_BPTree_delete_should_comply_with_BPTree_rules_using_BPTree_of_given_or
while
(
keys
->
size
>
0
)
{
int
index
=
rand
()
%
keys
->
size
;
BPTree_delete
(
root
,
keys
->
items
[
index
]);
// After each deletion,
we
check that the B+ tree conforms to the B+
T
ree
rules
.
// After each deletion,
is
check
ed
that the B+ tree conforms to the
rules of the
B+
t
ree.
TEST_ASSERT
(
check_BPTree_compliance
(
root
));
IntegerArray_delete_at_index
(
keys
,
index
);
}
...
...
@@ -437,7 +437,7 @@ void test_BPTree_search_should_find_the_keys_that_exist_in_the_BPTree_using_BPTr
uint64_t
data
;
bool
is_found
=
BPTree_search
(
root
,
keys
->
items
[
i
],
&
data
);
// After each search,
we
check that the key has been found and that the relationship between it and the data is correct.
// After each search,
is
check
ed
that the key has been found and that the relationship between it and the data is correct.
TEST_ASSERT
(
is_found
);
TEST_ASSERT_EQUAL_UINT64
(
transform_key_to_data
(
keys
->
items
[
i
]),
data
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment