From c00c5982aa94725363acaada866fc8d0a115f457 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Wed, 9 Oct 2024 15:15:09 +0200 Subject: Added indexing test --- modules/codec/tests/data.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/codec/tests/data.cpp b/modules/codec/tests/data.cpp index 816aa1c..627f20b 100644 --- a/modules/codec/tests/data.cpp +++ b/modules/codec/tests/data.cpp @@ -29,4 +29,15 @@ SAW_TEST("Data Native/Array Access with Data Native"){ SAW_EXPECT(b.get() == 10, "'b' has unexpected value."); } +SAW_TEST("Data Native/Indexing"){ + using namespace saw; + + data foo{10u}; + + + auto& b = foo.at(5u); + + b.set(10); +} + } -- cgit v1.2.3