tests: fix warnings exposed by -Werror and a non-recursive Storage copy

This commit is contained in:
faumaray committed 2026-12-03 17:37:14 +03:00
1 parent 2c8d853af0
commit 92d60231e5
5 files changed
+10 -18

No files matched your search

+2 -2
View File
@@ -67,7 +67,7 @@ Void::Testing::Test lru_get_promotes_entry()
c.put(1, "a");
c.put(2, "b");
c.put(3, "c");
c.get(1); // promote 1 to MRU
(void)c.get(1); // promote 1 to MRU
c.put(4, "d"); // evicts 2 (now LRU)
Void::Testing::expect(c.contains(1));
Void::Testing::expect(!c.contains(2));
@@ -106,7 +106,7 @@ Void::Testing::Test lru_peek_does_not_promote()
c.put(1, "a");
c.put(2, "b");
c.put(3, "c");
c.peek(1); // peek 1 but do NOT promote
(void)c.peek(1); // peek 1 but do NOT promote
c.put(4, "d"); // evicts 1 (still LRU despite peek)
Void::Testing::expect(!c.contains(1));
}