summaryrefslogtreecommitdiff
path: root/modules/codec/tests/forst.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-03-24 22:56:37 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-03-24 22:56:37 +0100
commitdd344394c0831453ec66298a99414deb56db9d3d (patch)
tree2979e7d7c0f9d3626835eed66caa08d41489cab4 /modules/codec/tests/forst.cpp
parentc64c76e273084cfd5b8628fb268e803957fc3025 (diff)
codec: Debugging
Diffstat (limited to 'modules/codec/tests/forst.cpp')
-rw-r--r--modules/codec/tests/forst.cpp15
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");
+ }
}
}
}