fktn-k / fkYAML

A C++ header-only YAML library
MIT License
69 stars 7 forks source link

#205 Detect duplicate keys as an error #206

Closed fktn-k closed 11 months ago

fktn-k commented 11 months ago

The YAML specification says mapping keys must be unique, but fkYAML doesn't check duplication of keys while parsing the input stream.
To follow the specification, this PR has fixed the bug.

Furthermore, to check that the fix works as expected, a new test case has also been added.

coveralls commented 11 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling a5723ca451a1c779fdbccd9dbe6c5646dafdbb2e on feature/205_detect_key_duplication into 06b39486a1460c0010c13e8ecade2d4c7eae358b on develop.