summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/codec/tests/data.cpp11
1 files changed, 11 insertions, 0 deletions
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<sch::Int32Array, encode::Native> foo{10u};
+
+
+ auto& b = foo.at(5u);
+
+ b.set(10);
+}
+
}