Skip to content

Commit d0ab2c3

Browse files
committed
Corrected test fenwick tree to import correct functions
1 parent a9771ef commit d0ab2c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_fenwick_tree.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void test_fenwick_sum() {
2121
using namespace Fenwick_Sum;
2222
vector<int> a = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
2323
int n = a.size();
24-
FenwickTree tree(a);
24+
FenwickTreeZeroBasedIndexing tree(a);
2525
for (int i = 0; i < n; i++) {
2626
int expected_sum = 0;
2727
for (int j = i; j < n; j++) {
@@ -68,7 +68,7 @@ void test_fenwick_sum_onebased() {
6868
using namespace Fenwick_Sum_Onebased;
6969
vector<int> a = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
7070
int n = a.size();
71-
FenwickTreeOneBasedIndexing tree(a);
71+
FenwickTree tree(a);
7272
for (int i = 0; i < n; i++) {
7373
int expected_sum = 0;
7474
for (int j = i; j < n; j++) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy