From 5c65123b44cd8e9761ff8c812b141a496a649019 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 11 Apr 2025 12:54:00 +0200 Subject: Moving towards more forstio data types --- modules/codec/tests/transport.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'modules/codec/tests') diff --git a/modules/codec/tests/transport.cpp b/modules/codec/tests/transport.cpp index e0e105f..515092c 100644 --- a/modules/codec/tests/transport.cpp +++ b/modules/codec/tests/transport.cpp @@ -33,8 +33,8 @@ SAW_TEST("Transport FixedLen Struct write and slice"){ auto& tda = native.template get<"two_dim_array">(); tda = {1,2}; - tda.at({0,0}).set(5); - tda.at({0,1}).set(3); + tda.at({{0,0}}).set(5); + tda.at({{0,1}}).set(3); native.template get<"number">().set(410); } codec codec; @@ -67,8 +67,8 @@ SAW_TEST("Transport FixedLen Struct write and slice"){ auto& tda = native.template get<"two_dim_array">(); tda = {1,2}; - tda.at({0,0}).set(2); - tda.at({0,1}).set(4); + tda.at({{0,0}}).set(2); + tda.at({{0,1}}).set(4); native.template get<"number">().set(709); } { @@ -118,8 +118,8 @@ SAW_TEST("Transport FixedLen Struct write and slice"){ { auto& tda = native.template get<"two_dim_array">(); - SAW_EXPECT(tda.at({0,0}).get() == 5, "Decoded value (0,0) wrong."); - SAW_EXPECT(tda.at({0,1}).get() == 3, "Decoded value (0,1) wrong."); + SAW_EXPECT(tda.at({{0,0}}).get() == 5, "Decoded value (0,0) wrong."); + SAW_EXPECT(tda.at({{0,1}}).get() == 3, "Decoded value (0,1) wrong."); SAW_EXPECT(native.template get<"number">().get() == 410, "Decoded value number wrong."); } } @@ -148,8 +148,8 @@ SAW_TEST("Transport FixedLen Struct write and slice"){ { auto& tda = native.template get<"two_dim_array">(); - SAW_EXPECT(tda.at({0,0}).get() == 2, "Decoded value (0,0) wrong."); - SAW_EXPECT(tda.at({0,1}).get() == 4, "Decoded value (0,1) wrong."); + SAW_EXPECT(tda.at({{0,0}}).get() == 2, "Decoded value (0,0) wrong."); + SAW_EXPECT(tda.at({{0,1}}).get() == 4, "Decoded value (0,1) wrong."); SAW_EXPECT(native.template get<"number">().get() == 709, "Decoded value number wrong."); } } -- cgit v1.2.3