summaryrefslogtreecommitdiff
path: root/test/datastructures/persistentArray.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 21:17:29 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 21:17:29 +0100
commit1880ccb6d85c6eb79e724593457877bab431951c (patch)
tree23eddd5bd0b29b3024e170a5ef9023eda9226ab5 /test/datastructures/persistentArray.cpp
parente95f59debd69ee7d45d5c966ce466d23264e1c3c (diff)
get rid of all() and sz()
Diffstat (limited to 'test/datastructures/persistentArray.cpp')
-rw-r--r--test/datastructures/persistentArray.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/datastructures/persistentArray.cpp b/test/datastructures/persistentArray.cpp
index 6712089..ef8e52b 100644
--- a/test/datastructures/persistentArray.cpp
+++ b/test/datastructures/persistentArray.cpp
@@ -24,19 +24,19 @@ void stress_test() {
cur[j] = x;
expected.emplace_back(t, cur);
} else if (op <= 16) {
- if (sz(expected) < 1) continue;
- int j = Random::integer<int>(0, sz(expected));
+ if (ssize(expected) < 1) continue;
+ int j = Random::integer<int>(0, ssize(expected));
for (int k = 0; k < m; k++) {
if (got.get(k, expected[j].first) != expected[j].second[k]) cerr << "got: " << got.get(k, expected[j].first) << ", expected: " << expected[j].second[k] << FAIL;
}
} else {
- if (sz(expected) < 1) continue;
- int j = Random::integer<int>(0, sz(expected));
+ if (ssize(expected) < 1) continue;
+ int j = Random::integer<int>(0, ssize(expected));
got.reset(expected[j].first);
expected.resize(j + 1);
cur = expected.back().second;
}
-
+
}
queries += n;
}