diff options
Diffstat (limited to 'modules/codec/tests/transport.cpp')
-rw-r--r-- | modules/codec/tests/transport.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/codec/tests/transport.cpp b/modules/codec/tests/transport.cpp index 8c786e9..e0e105f 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<schema::TestStruct, encode::KelSimple> 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."); } } |