diff options
Diffstat (limited to 'modules/codec/tests')
-rw-r--r-- | modules/codec/tests/forst.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/codec/tests/forst.cpp b/modules/codec/tests/forst.cpp index 8e715c9..1d9c0c3 100644 --- a/modules/codec/tests/forst.cpp +++ b/modules/codec/tests/forst.cpp @@ -69,12 +69,18 @@ SAW_TEST("Codec Forst Static Size Info"){ } } -SAW_TEST("Codec Forst Dynamic Size Info"){ +SAW_TEST("Codec Forst Primitive"){ using namespace saw; - data<typename meta_schema<TestStruct>::MetaSchema> meta_dat; + data<UInt64, encode::KelForst> forst_dat; - data<TestStruct, encode::Forst> forst_dat{meta_dat}; + uint64_t foo = 4213u; + + forst_dat.set(foo); + + uint64_t val = forst_dat.get(); + + SAW_EXPECT(val == foo, "Unexpected value"); } } } |