We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
TOML expressions should be separated by one or more newlines.
To Reproduce
The following test should not pass but does:
diff --git a/unmarshaler_test.go b/unmarshaler_test.go index 7d1bd07..fc30367 100644 --- a/unmarshaler_test.go +++ b/unmarshaler_test.go @@ -231,6 +231,20 @@ func TestUnmarshal(t *testing.T) { } }, }, + { + desc: "no newline", + input: `a = 1z = 2`, + gen: func() test { + m := map[string]interface{}{} + return test{ + target: &m, + expected: &map[string]interface{}{ + `a`: int64(1), + `z`: int64(2), + }, + } + }, + }, { desc: "multiline basic string", input: `A = """\
Versions
Related to #413.
The text was updated successfully, but these errors were encountered:
parser: require \n after parsing integer in kv
5fef90b
Fixes #526
parser: require \n after parsing integer in kv (#527)
1e80267
Thank you for catching this!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
TOML expressions should be separated by one or more newlines.
To Reproduce
The following test should not pass but does:
Versions
Related to #413.
The text was updated successfully, but these errors were encountered: