bitwalker / bitwalker/toml-elixir

Decoding empty inline table gives wrong result

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
206
Forks
32
PR merge metrics
No merged PRs in 30d

Description

`Toml.decode!/2` parses the following as `%{"a" => %{"b" => 1}}`:

```toml
a = {}
b = 1
```

The expected is `%{"a" => %{}, "b" => 1}`.

This might be related to issue #37. [tomerl](https://github.com/filmor/tomerl) and TOML libraries from other languages corroborate the expected value.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.