From c64c76e273084cfd5b8628fb268e803957fc3025 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sat, 23 Mar 2024 17:48:09 +0100 Subject: codec, io_codec: forst and rpc work --- modules/codec/tests/forst.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 modules/codec/tests/forst.cpp (limited to 'modules/codec/tests/forst.cpp') diff --git a/modules/codec/tests/forst.cpp b/modules/codec/tests/forst.cpp new file mode 100644 index 0000000..cb0442d --- /dev/null +++ b/modules/codec/tests/forst.cpp @@ -0,0 +1,29 @@ +#include +#include "../c++/data.hpp" +#include "../c++/forst.hpp" + +#include + +namespace { +namespace schema { +using namespace saw::schema; + +using TestStruct = Struct< + Member, + Member, + Member +>; + +using TestArray = Array< + TestStruct +>; + +SAW_TEST("Codec Forst Info"){ + using namespace saw; + + SAW_EXPECT(impl::forst_codec_info::layers == 0, "Layer info is wrong"); + SAW_EXPECT(impl::forst_codec_info::layers == 1, "Layer info is wrong"); + SAW_EXPECT(impl::forst_codec_info::layers == 2, "Layer info is wrong"); +} +} +} -- cgit v1.2.3