summaryrefslogtreecommitdiff
path: root/modules/codec/tests
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/tests')
-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");
+ }
}
}
}