minetest.serialize: Reversible number serialization (#9722)
authorHybridDog <3192173+HybridDog@users.noreply.github.com>
Wed, 22 Apr 2020 14:43:48 +0000 (16:43 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Apr 2020 14:43:48 +0000 (16:43 +0200)
commit5355cb1d87f60bc5548a8a9311e597b9c6046013
treec5aabae94525edead5e5ae8ee854bde2520e6ee1
parent4361bfcb4da0b6f9de74c7de9f2d08084877713e
minetest.serialize: Reversible number serialization (#9722)

* minetest.serialize: Reversible number to string conversion

The %a format is not supported in Lua 5.1.
This commit also adds two tests for number serialization.
builtin/common/serialize.lua
builtin/common/tests/serialize_spec.lua