[Yunq] Add parse/serialize for i64 field along with tests.

This commit is contained in:
Drew Galbraith 2024-01-17 13:57:02 -08:00
parent e83720e67c
commit a1f0197e83
9 changed files with 187 additions and 2 deletions

View file

@ -21,3 +21,14 @@ TEST_CASE("Basic serialization", "[yunq]") {
REQUIRE(b.field() == 1);
}
TEST_CASE("Types Setter/Getter", "[yunq]") {
ex::Types t;
t.set_unsigned_int(1);
t.set_signed_int(-1);
t.set_str("test");
REQUIRE(t.unsigned_int() == 1);
REQUIRE(t.signed_int() == -1);
REQUIRE(t.str() == "test");
}