diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-03-24 22:56:37 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-03-24 22:56:37 +0100 |
commit | dd344394c0831453ec66298a99414deb56db9d3d (patch) | |
tree | 2979e7d7c0f9d3626835eed66caa08d41489cab4 /modules/codec/tests | |
parent | c64c76e273084cfd5b8628fb268e803957fc3025 (diff) |
codec: Debugging
Diffstat (limited to 'modules/codec/tests')
-rw-r--r-- | modules/codec/tests/forst.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/modules/codec/tests/forst.cpp b/modules/codec/tests/forst.cpp index cb0442d..96c4dd0 100644 --- a/modules/codec/tests/forst.cpp +++ b/modules/codec/tests/forst.cpp @@ -21,9 +21,18 @@ using TestArray = Array< SAW_TEST("Codec Forst Info"){ using namespace saw; - SAW_EXPECT(impl::forst_codec_info<schema::UInt64>::layers == 0, "Layer info is wrong"); - SAW_EXPECT(impl::forst_codec_info<TestStruct>::layers == 1, "Layer info is wrong"); - SAW_EXPECT(impl::forst_codec_info<TestArray>::layers == 2, "Layer info is wrong"); + { + uint64_t depth = impl::forst_codec_info<schema::UInt64>::layers; + SAW_EXPECT(depth == 0, "Layer info is wrong"); + } + { + uint64_t depth = impl::forst_codec_info<TestStruct>::layers; + SAW_EXPECT(depth == 1, "Layer info is wrong"); + } + { + uint64_t depth = impl::forst_codec_info<TestArray>::layers; + SAW_EXPECT(depth == 2, "Layer info is wrong"); + } } } } |