From 3b203777a84373fe71a28224a4cd0e22608ede52 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Mon, 29 Jul 2024 18:25:08 +0200 Subject: forst tests on primitives successfull --- modules/codec/tests/forst.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'modules/codec/tests') 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::MetaSchema> meta_dat; + data forst_dat; - data forst_dat{meta_dat}; + uint64_t foo = 4213u; + + forst_dat.set(foo); + + uint64_t val = forst_dat.get(); + + SAW_EXPECT(val == foo, "Unexpected value"); } } } -- cgit v1.2.3