lune/tests/serde/toml/decode.luau
2023-03-21 16:48:28 +01:00

8 lines
256 B
Lua

local serde = require("@lune/serde") :: any
local source = require("./source")
local toml = serde.decode("toml", source.encoded)
assert(toml.package.name == "my-cool-toml-package")
assert(toml.package.version == "0.1.0")
assert(toml.values.epic == true)