diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-29 18:25:08 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-29 18:25:08 +0200 |
commit | 3b203777a84373fe71a28224a4cd0e22608ede52 (patch) | |
tree | 1de8d1957041721198674ea36e855afd9064bc51 /modules/codec/tests | |
parent | e6005faaf9f581148edd3e32bf402c2af7eb36ab (diff) |
forst tests on primitives successfull
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"); } } } |