mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #111522 from Repiteo/core/to-from-native
Core: Support `INF`/`NAN` in JSON from/to native
This commit is contained in:
commit
881058009f
2 changed files with 12 additions and 1 deletions
|
|
@ -60,6 +60,9 @@ TEST_CASE("[JSON][Native] Conversion between native and JSON formats") {
|
|||
// Numbers and strings (represented as JSON strings).
|
||||
test(1, R"("i:1")");
|
||||
test(1.0, R"("f:1.0")");
|
||||
test(Math::INF, R"("f:inf")");
|
||||
test(-Math::INF, R"("f:-inf")");
|
||||
test(Math::NaN, R"("f:nan")");
|
||||
test(String("abc"), R"("s:abc")");
|
||||
test(StringName("abc"), R"("sn:abc")");
|
||||
test(NodePath("abc"), R"("np:abc")");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue