mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix toml encoder
This commit is contained in:
parent
d9d65a169c
commit
9cd95bb0eb
3 changed files with 54 additions and 2 deletions
|
|
@ -26,6 +26,9 @@ TEST(TOML, EncodeDecode) {
|
|||
object["score"] = score;
|
||||
object["visible"] = visible;
|
||||
object["data"] = srcBytes;
|
||||
object["values"] = dv::list({
|
||||
5, 3, std::string("hello"), dv::object({{"number", 1234}})
|
||||
});
|
||||
|
||||
text = toml::stringify(object, "");
|
||||
std::cout << text << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue