[Yunq] Add parse/serialize for i64 field along with tests.
This commit is contained in:
parent
e83720e67c
commit
a1f0197e83
9 changed files with 187 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue