cyanskies / another-toml-cpp

MIT License
1 stars 0 forks source link

Failed tests (toml-test 1.4.0) #11

Closed cyanskies closed 11 months ago

cyanskies commented 11 months ago

Decoding:

Encoding:

cyanskies commented 11 months ago

The two encoding tests are including characters from outside the Unicode Scalar Value ranges. I'm pretty sure these escape codes are supposed to be rejected.

cyanskies commented 11 months ago

This was being caused by the JSON parser used in https://github.com/cyanskies/another-toml-test. A function for parsing these unicode escape codes has been added in https://github.com/cyanskies/another-toml-cpp/commit/bd3a859024a46e2e14258505e1d65dc1aa2fd026 and the tests pass when the JSON strings are passed through the new function.