aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-10-01 14:12:45 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-10-01 14:12:45 +0200
commit483a0e34401226b4f95104419186504f7dcfee56 (patch)
treef98ede82ed3f8dd35990bd5c808d67a8c65719d9
parentbf4ac04c73439395220bb0e6e1b648cb85bb8551 (diff)
downloadkernel-483a0e34401226b4f95104419186504f7dcfee56.tar.xz
kernel-483a0e34401226b4f95104419186504f7dcfee56.zip
kstd: ring_buffer: fix const-overload tests
-rw-r--r--libs/kstd/kstd/ring_buffer.tests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/kstd/kstd/ring_buffer.tests.cpp b/libs/kstd/kstd/ring_buffer.tests.cpp
index d2e4a84d..7f459734 100644
--- a/libs/kstd/kstd/ring_buffer.tests.cpp
+++ b/libs/kstd/kstd/ring_buffer.tests.cpp
@@ -221,9 +221,9 @@ SCENARIO("Ring Buffer element access", "[kstd][ring_buffer]")
THEN("accessing the first 3 elements using operator[] returns 'a'")
{
- REQUIRE(buffer[0] == 'a');
- REQUIRE(buffer[1] == 'a');
- REQUIRE(buffer[2] == 'a');
+ REQUIRE(ref[0] == 'a');
+ REQUIRE(ref[1] == 'a');
+ REQUIRE(ref[2] == 'a');
}
}
}