Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add unit tests #9

Open
lemire opened this issue May 16, 2024 · 1 comment
Open

add unit tests #9

lemire opened this issue May 16, 2024 · 1 comment

Comments

@lemire
Copy link
Member

lemire commented May 16, 2024

I am not 100% sure how to test a serializer... if we don't have deserialization... but we need to think about unit tests.

@Yaraslaut
Copy link
Contributor

Here is an example how one can check serialization inside shell:

a.out > file
grep "Z{X{B{.m0=0}, .m1=1}, Y{B{.m0=0}, .m2=2}, .m3=3, .m4=4}" file | wc -l

and llvm uses lit to run such tests for example
https://github.com/bloomberg/clang-p2996/blob/c2764acc619ae358a42aa8d8fddd4bef7788aad6/libcxx/test/std/experimental/reflection/p2996-ex-universal-formatter.sh.cpp#L89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants