diff options
Diffstat (limited to 'modules/codec-netcdf/tests')
-rw-r--r-- | modules/codec-netcdf/tests/codec-netcdf.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/codec-netcdf/tests/codec-netcdf.cpp b/modules/codec-netcdf/tests/codec-netcdf.cpp index 0211a15..0c9bc57 100644 --- a/modules/codec-netcdf/tests/codec-netcdf.cpp +++ b/modules/codec-netcdf/tests/codec-netcdf.cpp @@ -46,10 +46,10 @@ std::array<uint8_t,156> tests_data_array_nc = { SAW_TEST("NetCDF Struct Primitive write"){ using namespace saw; - data<schema::TestStruct, encode::Native<rmt::Host>> native; + data<schema::TestStruct, encode::Native<storage::Default>> native; - native.get<"data">().set(5); - native.get<"other">().set(32.0); + native.template get<"data">().set(5); + native.template get<"other">().set(32.0); codec<schema::TestStruct, encode::Netcdf> codec; @@ -69,14 +69,14 @@ SAW_TEST("NetCDF Struct Primitive read"){ using namespace saw; data<schema::TestStruct, encode::Netcdf> netcdf{tests_data_primitive_nc}; - data<schema::TestStruct, encode::Native<rmt::Host>> native; + data<schema::TestStruct, encode::Native<storage::Default>> native; codec<schema::TestStruct, encode::Netcdf> codec; auto eov = codec.decode(netcdf, native); SAW_EXPECT(eov.is_value(), "Decoding failed"); - SAW_EXPECT(native.get<"data">().get() == 5, "Int Value incorrect"); - SAW_EXPECT(native.get<"other">().get() == 32.0, "Double Value incorrect"); + SAW_EXPECT(native.template get<"data">().get() == 5, "Int Value incorrect"); + SAW_EXPECT(native.template get<"other">().get() == 32.0, "Double Value incorrect"); } SAW_TEST("NetCDF Struct Array read"){ @@ -84,7 +84,7 @@ SAW_TEST("NetCDF Struct Array read"){ data<schema::TestArrayStruct, encode::Netcdf> netcdf{tests_data_array_nc}; - data<schema::TestArrayStruct, encode::Native<rmt::Host>> native; + data<schema::TestArrayStruct, encode::Native<storage::Default>> native; codec<schema::TestArrayStruct, encode::Netcdf> codec; |