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

[VariantUtils] Use read_json to read negative numbers will result in positive numbers. #81

Closed
JX-Master opened this issue Oct 7, 2024 · 0 comments · Fixed by #82
Closed
Assignees
Labels
bug Something isn't working VariantUtils Issues related to Variant Utility module.
Milestone

Comments

@JX-Master
Copy link
Owner

test code:

Variant var1((i64)-3);
String s = VariantUtils::write_json(var1);
R<Variant> var2 = VariantUtils::read_json(s.c_str());
luassert_always(succeeded(var2));
luassert_always(var1 == var2.get());
@JX-Master JX-Master added bug Something isn't working VariantUtils Issues related to Variant Utility module. labels Oct 7, 2024
@JX-Master JX-Master added this to the v0.9 milestone Oct 7, 2024
@JX-Master JX-Master self-assigned this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working VariantUtils Issues related to Variant Utility module.
Projects
None yet
1 participant